OFFSET
1,4
COMMENTS
LINKS
PROG
(PARI) A352897(n) = { my(m=bigomega(n)); while(n>2, m = max(m, bigomega(n)); n = A352892(n)); (m); }; \\ Uses the code from A352892.
(PARI) A352897(n) = { my(m=bigomega(n)); while(n>2, m = max(m, bigomega(n)); n = A341515(n)); (m); }; \\ Slightly slower.
(PARI)
A156552(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]); res };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 08 2022
STATUS
approved