OFFSET
0,2
LINKS
PROG
(PARI) A324183(n) = if(!n, 1, n = ((3<<#binary(n\2))-n-1); my(e=0, m=1); while(n>0, if(!(n%2), m *= (1+e); e=0, e++); n >>= 1); (m*(1+e)));
(PARI)
A163511(n) = if(!n, 1, my(p=2, t=1); while(n>1, if(!(n%2), (t*=p), p=nextprime(1+p)); n >>= 1); (t*p));
(PARI)
A106737(n) = sum(k=0, n, (binomial(n+k, n-k)*binomial(n, k)) % 2);
(Python)
def A324183(n):
if n:
c = 1
while n:
c *= (s:=(~n&n-1).bit_length()+1)
n >>= s
return c*(s+1)//s
return 1 # Chai Wah Wu, Jul 25 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 17 2019
STATUS
approved