OFFSET
0,2
LINKS
PROG
(PARI) A322825(n) = if(!n, 1, my(rl=1, m=1, p=2, eb = (n%2)); n>>=1; while(n, if((n%2)==eb, rl++, eb = 1-eb; m *= p^rl; p = nextprime(1+p)); n >>= 1); m *= p^rl; (m));
(PARI) A322825(n) = if(!n, 1, my(bits = Vecrev(binary(n)), rl=1, o = List([])); for(i=2, #bits, if(bits[i]==bits[i-1], rl++, listput(o, rl))); listput(o, rl); my(es=Vec(o), m=1); for(i=1, #es, m *= prime(i)^es[i]); (m));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 16 2019
STATUS
approved