[go: up one dir, main page]

login
A354997
a(n) = A351547(n) / A351546(n).
3
1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 5, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 3, 1, 1, 1, 9, 1, 1, 1, 7, 1, 1, 1, 3, 1
OFFSET
1,8
FORMULA
a(n) = A351547(n) / A351546(n).
PROG
(PARI)
A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
A351546(n) = { my(f=factor(sigma(n)), u=A003961(n)); prod(k=1, #f~, f[k, 1]^((0!=(u%f[k, 1]))*f[k, 2])); };
A351547(n) = { my(s=sigma(n), f=factor(s), u=A003961(n)); s/prod(k=1, #f~, if(!(u%f[k, 1]) && (f[k, 2]>=valuation(u, f[k, 1])), f[k, 1]^f[k, 2], 1)); };
A354997(n) = (A351547(n) / A351546(n));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 09 2022
STATUS
approved