OFFSET
1,2
COMMENTS
This sequence gives a great number of primes or primes squared: For n = P(i)# = 2, 6, 30, 210, 2310, 30030, 510510, 9699690, 223092870 we get a(P(i)#) = 2^2, 5^2, 11^2, 241, 241, 41^2, 71^2, 71^2, 71^2.
EXAMPLE
b(1)=1, b(2)=1; for n=2 the sequence is 1,1,0,1,1,0,1,1,0,... so a(2)=4 as for k=4 you recover 1,1,0.
For n=3 the sequence is 1,1,2,0,2,2,1,0,1,1,2,0,... so a(3)=9 as for k=9 you recover 1,1,2.
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 19 2004
STATUS
approved