OFFSET
0,1
COMMENTS
Conjecture: This sequence carried to infinity is non-repeating and non-terminating. If we concatenate the numbers and introduce a decimal point somewhere, we will get an irrational number.
FORMULA
n=2, n = (n mod 10 + p)%10 where p is prime = 2, 3, 5...
EXAMPLE
Imagine a number wheel 0,1,2,3,4,5,6,7,8,9 like the numbers on an odometer. The first prime in the wheel is 2. Counting from 2, the next number is 2 positions beyond 2 which is 4; counting 3 positions from 4, we get 7; counting 5 positions from 7 (when we hit 9, we go to 0) we get 2. 4,7,2 are the first 3 terms in the table.
MATHEMATICA
a[-2] = 2; a[n_] := a[n] = Mod[a[n - 1] + Prime[n + 2], 10]; Array[a, 105, -1] (* Robert G. Wilson v, Mar 10 2013 *)
PROG
(PARI) f(n) = x=2; forprime(p=2, n, x=(x%10+p)%10; print1(x", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Aug 02 2004
STATUS
approved