There are two men named "Van Eck". The first, in 1985, showed the whole world how to intercept data from a monitor ( Van Eck phreaking ) for $ 15; the second, in 2010, came up with a cunning sequence ( Van Eck's sequence ). Steeper than the simplicity of the task of this sequence can only be its properties and puzzles.
So, the algorithm for generating sequence members. We take the "starting number", for example, "0", write out. The next term is how many steps back this number occurred in the previous sub-sequence. If never, then write zero. The next is how many steps back there was zero in the previous sub-sequence, that is, one step back. We write down the unit. Unit one - write zero. Oops, zero met two steps back. We are writing two, and so on ...
For the report point โ0โ, the first 97 members of the sequence:
The properties of a sequence are quite easily proved that its maximum term increases all the time and that it has an infinite number of zeros. Or that there are no periods in it. (A few theorems and consequences here .)
Logarithmic graph:
Program in Python:
A181391 = [0] last_pos = {} for i in range(10**4): new_value = i - last_pos.get(A181391[i], i) A181391.append(new_value) last_pos[A181391[i]] = i # Ehsan Kia, Jun 12 2019
For the starting number "1", the first hundred is: