OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..4096
PROG
(PARI)
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)};
A006068(n)= { my(s=1, ns); while(1, ns = n >> s; if(0==ns, break()); n = bitxor(n, ns); s <<= 1; ); return (n); } \\ Essentially Joerg Arndt's Jul 19 2012 code.
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 28 2017
STATUS
approved