OFFSET
1,3
COMMENTS
Conjecture (checked for the first 3000 entries): periodic with a(n+24)=a(n).
Is this a multiplicative function?
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
a(n) = gcd(12, n/gcd(2, n)). - Andrew Howroyd, Jul 26 2018
From Amiram Eldar, Oct 28 2023: (Start)
Multiplicative with a(2^3) = 2^min(e-1,2), a(3^e) = 3, and a(p^e) = 1 for a prime p >= 5.
Dirichlet g.f.: zeta(s) * (1 + 1/2^(2*s) + 1/2^(3*s-1)) * (1 + 2/3^s).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 5/2. (End)
MAPLE
MATHEMATICA
Table[GCD[12, n / GCD[2, n]], {n, 100}] (* Vincenzo Librandi, Jul 26 2018 *)
PROG
(PARI) a(n) = gcd(12, n/gcd(2, n)); \\ Andrew Howroyd, Jul 26 2018
(Magma) [Gcd(12, n div Gcd(2, n)): n in [1..100]]; // Vincenzo Librandi, Jul 26 2018
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Paul Curtz, Aug 28 2009
EXTENSIONS
Offset set to 1 by R. J. Mathar, Sep 06 2009
STATUS
approved