OFFSET
1,3
COMMENTS
It is conjectured that for all n > 2, u(n) = 0 implies that u(n+1) = 9n+8 is prime, cf. A186261. (This is the sequence {u(n)} mentioned there.)
EXAMPLE
a(2) = a(1) - gcd(a(1),9+8) = 1 - 1 = 0.
a(3) = |a(2) - gcd(a(2),9*2+8)| = gcd(0,26) = 26.
a(3+26) = a(29) = 0 and a(29+1) = gcd(0,9*29+8) = 269 is prime.
PROG
(PARI) print1(a=1); for(n=1, 99, print1(", ", a=abs(a-gcd(a, 9*n+8))))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Aug 14 2015
STATUS
approved