OFFSET
1,2
COMMENTS
Maps even numbers to terms of A000051 (2^n + 1) in some order.
LINKS
PROG
(PARI)
default(primelimit, (2^31)+(2^30));
A002808(n) = { my(k=-1); while( -n + n += -k + k=primepi(n), ); n }; \\ This function from M. F. Hasler
A064989(n) = {my(f); f = factor(n); if((n>1 && f[1, 1]==2), f[1, 2] = 0); for (i=1, #f~, f[i, 1] = precprime(f[i, 1]-1)); factorback(f)};
for(n=1, 95, write("b246366.txt", n, " ", A246366(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 26 2014
STATUS
approved