OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
EXAMPLE
a(8) + 1 = 15 + 1 = 16. The positive integers which are coprime to 16 form the sequence: 1,3,5,7,9,11,13,15,17,19,21,23,... The 9th of these is 17. So a(9) = 17.
MATHEMATICA
a = {0}; For[n = 1, n < 60, n++, i = 0; b = 0; While[i < n, b++; If[GCD[a[[ -1]] + 1, b] == 1, i++ ]]; AppendTo[a, b]]; a (* Stefan Steinerberger, Oct 16 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 10 2007
EXTENSIONS
More terms from Stefan Steinerberger, Oct 16 2007
More terms from Sean A. Irvine, Mar 03 2010
STATUS
approved