mardi 27 octobre 2020

Find the algorithm used to create next number in the sequence (Pseudo RNG)

The first number in a sequence is 0094332543029476 and the next number in the sequence is 0094332543031698. We know the difference between the two is 2222 and GDC is 2. I need to know the next number in the sequence. (And it's not 0094332543033920 after adding 2222). and it is also not 0094332543049474 by using 0094332543029476 + 2222*3^2.

The number of digits is fixed (16), the next number in the sequence is always positive and bigger than the previous one.

This means that some operation has been done to the first number which gives us 2222 as the number to add to make the second one.

There is an algorithm being applied to the first number(0094332543029476) (or its individual digits) to produce 2222 to be added and make the next one. Now this same algorithm must be applied to 0094332543031698 to produce the third number and so on.

This means that it is not based on 2222 and that there is an algorithm involved.

How would you approach this problem?

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire