OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
PROG
(PARI) A364557(n) = if(1==n, 1, 2^(primepi(vecmax(factor(n)[, 1]))+(bigomega(n)-omega(n))-1));
(PARI)
A005941(n) = { my(f=factor(n), p, p2=1, res=0); for(i=1, #f~, p = 1 << (primepi(f[i, 1])-1); res += (p * p2 * (2^(f[i, 2])-1)); p2 <<= f[i, 2]); (1+res) }; \\ (After David A. Corneth's program for A156552)
(Python)
from sympy import factorint, primepi
def A364557(n): return 1<<primepi(max(f:=factorint(n)))+sum(e-1 for e in f.values())-1 if n>1 else 1 # Chai Wah Wu, Jul 29 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 28 2023
STATUS
approved