OFFSET
1,3
LINKS
FORMULA
EXAMPLE
A344535(42) = 240, so a(240) = 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^(y + (x+
(x+y+1)/2))); v }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 23 2021
STATUS
approved