OFFSET
0,2
COMMENTS
"Cat's tongue" refers to the look of the scatter plot of this sequence.
LINKS
FORMULA
PROG
(PARI)
A030101(n) = if(n<1, 0, subst(Polrev(binary(n)), x, 2));
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));
(Python)
from sympy import prime
def A366275(n):
if n:
k, c, m = int(bin(n>>(r:=(~n & n-1).bit_length()))[:1:-1], 2)<<r, 0, 1
while k:
c += 1
m *= prime(c)**(s:=(~k&k-1).bit_length())
k >>= s+1
return m*prime(c)
return 1 # Chai Wah Wu, Oct 08 2023
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Oct 06 2023
STATUS
approved