OFFSET
1,5
LINKS
FORMULA
PROG
(PARI)
A000265(n) = (n>>valuation(n, 2));
A064989(n) = { my(f=factor(A000265(n))); for(i=1, #f~, f[i, 1] = precprime(f[i, 1]-1)); factorback(f); };
(Python)
from math import prod
from sympy import factorint, prevprime
def A353412(n): return int(bin(prod(1 if p == 2 else prevprime(p)*e for p, e in factorint(n).items()) if n % 2 else n//2)[2:].rstrip('0'), 2) # Chai Wah Wu, Apr 18 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 18 2022
STATUS
approved