OFFSET
1,5
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10001
EXAMPLE
PROG
(PARI)
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ Using code of Michel Marcus
for(n=1, 10001, write("b246271.txt", n, " ", A246271(n)));
(Scheme, two different variants, the second one employing memoizing definec-macro)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 21 2014
STATUS
approved