OFFSET
1,2
COMMENTS
LINKS
FORMULA
PROG
(PARI)
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ This function from Michel Marcus
A064989(n) = my(f = factor(n)); for(i=1, #f~, if((2 == f[i, 1]), f[i, 1] = 1, f[i, 1] = precprime(f[i, 1]-1))); factorback(f);
A244319(n) = if(1==n, 1, if(0==(n%2), A003961(1+A244319(A064989(n-1))), 1+A003961(A244319(A064989(n)-1))));
for(n=1, 10001, write("b244319.txt", n, " ", A244319(n)))
(Scheme, with Antti Karttunen's IntSeq-library for memoizing definec-macro)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 18 2014; description corrected and PARI code added Jul 30 2014
STATUS
approved