OFFSET
1,2
COMMENTS
Contains an infinite number of infinite cycles. See comments at A246377.
LINKS
FORMULA
PROG
(PARI)
A002808(n) = { my(k=-1); while( -n + n += -k + k=primepi(n), ); n }; \\ This function from M. F. Hasler
for(n=1, 4096, write("b246378.txt", n, " ", A246378(n)));
(Scheme, with memoizing definec-macro)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Aug 27 2014
STATUS
approved