Number Generator - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Number Generator

tcat01tcat01 Posts: 1Member
If given a set of numbers (14 digits each) with the same algorithm, is it possible to find the algorithm and generate more numbers?

Comments

  • GaashiusGaashius Posts: 349Member
    : If given a set of numbers (14 digits each) with the same algorithm, is it possible to find the algorithm and generate more numbers?
    :
    Sorry my english is terrible... would you please be so kind as to write more detailed information about what do you need? :-)

    ****************
    Any questions? Just ask!

    :-) [b][blue]GAASHIUS[/blue][/b] :-)


  • IDKIDK Posts: 1,784Member
    : If given a set of numbers (14 digits each) with the same algorithm, is it possible to find the algorithm and generate more numbers?
    :
    Yepp, or almost.

    Grab a math book and learn or relearn how to get a function from a set of data.

    (if you want to be advanced you could do a neural network that learn's from youre data...)

    [b]Niklas Ulvinge[/b] [white]aka [b]IDK[/b][/white]

  • DrMartenDrMarten Posts: 748Member
    [b][red]This message was edited by DrMarten at 2006-2-28 18:48:25[/red][/b][hr]

    : If given a set of numbers (14 digits each) with the same algorithm, is it possible to find the algorithm and generate more numbers?
    :

    You could look for differences between the values,
    Do they all end with 0 or/and 5 ( divisible by 5 or 10 )?

    You have to try and look for patterns in the numbers, they may all be PRIME numbers?

    They may all have a common denominator like 5 or 10 or a bigger or a smaller number.

    They may be numbers of a series like FIBONACCI where the next number is the sum of the previous two. 1,2,3,5,8,13....and so on.

    There are lots of tests for numbers.
    Another is if you add all the digits like

    927631836459045 is divisible by 9 as if all the digits added are divisible by 8 then the bigger number is.

    Just look at
    18
    27
    36
    45
    54
    63
    72
    90
    99
    108 etc and you get the idea 1+8=9 so 108 is divisible by 9.

    Lots of things like the above can be tested.


    Regards,

    Dr M.

Sign In or Register to comment.