login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A365172 The sum of divisors d of n such that gcd(d, n/d) is a square. 3
1, 3, 4, 5, 6, 12, 8, 9, 10, 18, 12, 20, 14, 24, 24, 21, 18, 30, 20, 30, 32, 36, 24, 36, 26, 42, 28, 40, 30, 72, 32, 45, 48, 54, 48, 50, 38, 60, 56, 54, 42, 96, 44, 60, 60, 72, 48, 84, 50, 78, 72, 70, 54, 84, 72, 72, 80, 90, 60, 120, 62, 96, 80, 85, 84, 144, 68 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The number of these divisors is A365171(n).
LINKS
FORMULA
Multiplicative with a(p^e) = (p^(e+2) - 1)/(p^2 - 1) if e is even, and (1 + p^(2*floor((e+1)/4) + 1))*(p^(2*floor(e/4)+2) - 1)/(p^2 - 1) if e is odd.
a(n) <= A000203(n), with equality if and only if n is squarefree (A005117).
a(n) >= A034448(n), with equality if and only if n is not a biquadrateful number (A046101).
Sum_{k=1..n} a(k) ~ c * n^2, where c = 1/(2 * Product_{p prime} (1 - 1/p^2 + 1/p^3 - 1/p^5)) = 0.696082796052... .
MATHEMATICA
f[p_, e_] := If[EvenQ[e], (p^(e + 2) - 1)/(p^2 - 1), (1 + p^(2*Floor[(e + 1)/4] + 1))*(p^(2*Floor[e/4] + 2) - 1)/(p^2 - 1)]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n), p, e); prod(i = 1, #f~, p = f[i, 1]; e = f[i, 2]; if(e%2, (1 + p^(2*((e+1)\4)+1))*(p^(2*(e\4)+2) - 1)/(p^2 - 1), (p^(e+2) - 1)/(p^2 - 1))); }
CROSSREFS
Sequence in context: A346613 A034448 A365211 * A331107 A069184 A181549
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Aug 25 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 2 23:14 EDT 2024. Contains 372203 sequences. (Running on oeis4.)