OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Henry Bottomley, Some Smarandache-type multiplicative sequences.
FORMULA
Multiplicative with a(p^e) = p^((4 - e) mod 4). - Amiram Eldar, Sep 08 2020
Sum_{k=1..n} a(k) ~ c * n^4, where c = (zeta(16)/(4*zeta(4))) * Product_{p prime} (1 - 1/p^2 + 1/p^4 - 1/p^7 + 1/p^8) = 0.1537848996... . - Amiram Eldar, Oct 27 2022
EXAMPLE
a(64) = 4 because the smallest 4th power divisible by 64 is 256 and 64*4 = 256.
MATHEMATICA
f[p_, e_] := p^Mod[4 - e, 4]; a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 100] (* Amiram Eldar, Sep 08 2020 *)
PROG
(PARI) a(n, f=factor(n))=f[, 2]=-f[, 2]%4; factorback(f) \\ Charles R Greathouse IV, Apr 24 2020
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Henry Bottomley, Jun 25 2000
STATUS
approved