OFFSET
1,2
LINKS
PROG
(PARI)
A002487(n) = { my(a=1, b=0); while(n>0, if(bitand(n, 1), b+=a, a+=b); n>>=1); (b); }; \\ From A002487
(Python)
from functools import reduce
from sympy import factorint
def A318316(n): return 1<<sum(sum(reduce(lambda x, y:(x[0], sum(x)) if int(y) else (sum(x), x[1]), bin((e<<1)-1)[-1:2:-1], (1, 0))) for e in factorint(n).values()) # Chai Wah Wu, May 18 2023
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, Aug 31 2018
STATUS
approved