OFFSET
1,3
COMMENTS
It is conjectured that a(n) = 0 implies that 5n+4 = a(n+1) is prime for n > 2, cf. A186256. (This is the sequence {u(n)} mentioned there.)
EXAMPLE
a(2) = a(1) - gcd(a(1),5+4) = 1 - 1 = 0.
a(3) = |a(2) - gcd(a(2),5*2+4)| = 14.
a(19) = 88, thus a(20) = 88 - gcd(88, 5*19+4) = 88 - 11 = 77.
PROG
(PARI) print1(a=1); for(n=1, 199, print1(", ", a=abs(a-gcd(a, 5*n+4))))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Aug 14 2015
STATUS
approved