OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..12580
FORMULA
PROG
(PARI)
A049084(n) = if(isprime(n), primepi(n), 0); \\ This function from Charles R Greathouse IV
A249337_write_bfile(up_to_n) = { my(counts, n, a_n); counts = vector(up_to_n); a_n = 1; for(n = 1, up_to_n, write("b249337.txt", n, " ", a_n); counts[1+A056239(a_n)]++; if(1 == n, a_n = 2, a_n = counts[1+A056239(a_n)])); };
A249337_write_bfile(12580);
(Scheme, with memoization-macro definec from Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 25 2014
STATUS
approved