OFFSET
1,1
COMMENTS
Sum{k=1 to n} a(k) = A161889(n).
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
spi[{n_, s_, a_}]:=Module[{k=1}, While[Divisible[n+1, k]||!CoprimeQ[s+k, n+1], k++]; {n+1, s+k, k}]; Transpose[NestList[spi, {1, 2, 2}, 105]][[3]] (* Harvey P. Dale, May 26 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 21 2009
EXTENSIONS
More terms from Sean A. Irvine, Aug 10 2010
STATUS
approved