login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A126357
a(n) is the (n+1)st integer from among the positive integers which are coprime to n.
2
2, 5, 5, 9, 7, 19, 9, 17, 14, 27, 13, 37, 15, 33, 29, 33, 19, 55, 21, 51, 38, 49, 25, 73, 32, 57, 41, 67, 31, 113, 33, 65, 56, 73, 52, 109, 39, 81, 64, 101, 43, 149, 45, 97, 86, 97, 49, 145, 58, 127, 82, 113, 55, 163, 76, 131, 91, 121, 61, 227, 63, 129, 110, 129, 88, 221, 69
OFFSET
1,1
EXAMPLE
The positive integers which are coprime to 6 are 1,5,7,11,13,17,19,23,... The 7th of these is 19, which is a(6).
MATHEMATICA
f[n_] := Block[{k = 0, c = n + 1}, While[c > 0, k++; While[GCD[k, n] > 1, k++ ]; c--; ]; k]; Table[f[n], {n, 67}] (* Ray Chandler, Dec 29 2006 *)
CROSSREFS
Sequence in context: A152781 A200242 A062553 * A377809 A070243 A367642
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 26 2006
EXTENSIONS
Extended by Ray Chandler, Dec 29 2006
STATUS
approved