A336651 Odd part of n divided by its largest squarefree divisor.
1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 5, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 7, 5, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 5, 1, 1, 1, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 7, 3, 5, 1, 1, 1, 1, 1
Offset: 1
Links
- Antti Karttunen, Table of n, a(n) for n = 1..65537
Programs
-
Mathematica
f[2, e_] := 1; f[p_, e_] := p^(e-1); a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 100] (* Amiram Eldar, Dec 07 2020 *)
-
PARI
A336651(n) = { my(f=factor(n)); prod(i=1, #f~, if(2==f[i,1],1,f[i,1]^(f[i,2]-1))); };
Formula
Multiplicative with a(2^e) = 1, and for odd primes p, a(p^e) = p^(e-1).
Dirichlet g.f.: (1 - 1/(2^s-1)^2) * zeta(s-1) * Product_{p prime} (1 - 1/p^(s-1) + 1/p^s). - Amiram Eldar, Sep 14 2023
Comments