OFFSET
0,3
EXAMPLE
36 = the sum of the terms a(0) to a(7), 36 = 1+1+3+3+7+8+6+7. 1,5,7,11,13,17,19,23,25... are the positive integers which are coprime to 36. 23 is the 8th of these integers, so a(8) = 23.
PROG
(PARI) {my(m=68, s=1); print1(1, ", "); for(n=1, m, k=n; c=0; while(k>0, c++; if(gcd(s, c)==1, k--)); print1(c, ", "); s=s+c)} \\ Klaus Brockhaus, Aug 15 2006
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 05 2006
EXTENSIONS
More terms from Klaus Brockhaus, Aug 15 2006
STATUS
approved
