

A121527


a(0)=1. a(n) = nth integer from among those positive integers which are coprime to the sum of the previous terms of this sequence.


1



1, 1, 3, 3, 7, 8, 6, 7, 23, 9, 21, 11, 29, 19, 27, 22, 16, 25, 43, 19, 73, 21, 43, 25, 89, 26, 26, 40, 28, 31, 97, 32, 47, 65, 35, 103, 37, 81, 41, 101, 59, 117, 44, 50, 65, 89, 57, 93, 59, 173, 52, 76, 82, 53, 133, 55, 167, 83, 117, 73, 143, 61, 123, 78, 70, 97, 173, 110, 72
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,3


LINKS



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) {m=68; print1(1, ", "); s=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



EXTENSIONS



STATUS

approved



