OFFSET
1,6
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
FORMULA
PROG
(PARI)
A354108(n) = ((n && !bitand(n, n-1)) || !isprimepower(n/(2-(n%2))));
(Python)
from sympy import factorint
def A366371(n): return sum(factorint(n).values()) if n&1 else sum(factorint(n>>(~n&n-1).bit_length()).values())<<1 # Chai Wah Wu, Nov 24 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 23 2023
STATUS
approved