OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
PROG
(PARI)
A000265(n) = (n>>valuation(n, 2));
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523
(Python)
from math import prod
from sympy import factorint, prime
def A336158(n): return prod(prime(i+1)**e for i, e in enumerate(sorted(factorint(n>>(~n&n-1).bit_length()).values(), reverse=True))) # Chai Wah Wu, Sep 16 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 11 2020
STATUS
approved