OFFSET
1,3
LINKS
FORMULA
EXAMPLE
A344534(42) = 320, so a(320) = 42.
PROG
(PARI) a(n) = { my (f=factor(n), v=0); for (k=1, #f~, my (x=primepi(f[k, 1])-1, yy=f[k, 2], y); while (yy, yy-=2^y=valuation(yy, 2); v+=2^(x + (x+y)*
(x+y+1)/2))); v }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 23 2021
STATUS
approved