OFFSET
1,4
COMMENTS
Starting with a(1) = 1 instead leads to a(n) = n for every positive integer n.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
a[1] := 0; a[n_] := a[n] = GCD[a[n - 1] + 1, n]; Table[a[n], {n, 82}] (* Alonso del Arte, Feb 14 2011 *)
RecurrenceTable[{a[1]==0, a[n]==GCD[a[n-1]+1, n]}, a, {n, 90}] (* Harvey P. Dale, Aug 02 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 29 2008
EXTENSIONS
More terms from Sean A. Irvine, Feb 14 2011
STATUS
approved