login
A368170
The largest cubefull exponentially odd divisor of n.
3
1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 27, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 27, 1, 8, 1, 1, 1, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 27, 1, 1, 1, 1, 1
OFFSET
1,8
COMMENTS
First differs from A008834 at n = 32, and from A366906 at n = 64.
LINKS
FORMULA
Multiplicative with a(p^e) = 1 if e <= 2, a(p^e) = p^e if e is odd and e > 1, and p^(e-1) otherwise.
a(n) = n/A368171(n).
a(n) >= 1, with equality if and only if n is cubefree (A004709).
a(n) <= n, with equality if and only if n is in A335988.
MATHEMATICA
f[p_, e_] := If[e <= 2, 1, If[EvenQ[e], p^(e-1), p^e]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f=factor(n)); prod(i=1, #f~, if(f[i, 2] <= 2, 1, if(!(f[i, 2]%2), f[i, 1]^(f[i, 2]-1), f[i, 1]^f[i, 2])))};
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Dec 14 2023
STATUS
approved