Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Search: a050461 -id:a050461
     Sort: relevance | references | number | modified | created      Format: long | short | data
a(n) = sigma_2(n): sum of squares of divisors of n.
(Formerly M3799 N1551)
+10
396
1, 5, 10, 21, 26, 50, 50, 85, 91, 130, 122, 210, 170, 250, 260, 341, 290, 455, 362, 546, 500, 610, 530, 850, 651, 850, 820, 1050, 842, 1300, 962, 1365, 1220, 1450, 1300, 1911, 1370, 1810, 1700, 2210, 1682, 2500, 1850, 2562, 2366, 2650, 2210, 3410, 2451, 3255
OFFSET
1,2
COMMENTS
If the canonical factorization of n into prime powers is the product of p^e(p) then sigma_k(n) = Product_p ((p^((e(p)+1)*k))-1)/(p^k-1).
sigma_2(n) is the sum of the squares of the divisors of n.
Sum_{d|n} 1/d^k is equal to sigma_k(n)/n^k. So sequences A017665-A017712 also give the numerators and denominators of sigma_k(n)/n^k for k = 1..24. The power sums sigma_k(n) are in sequences A000203 (k=1), A001157-A001160 (k=2,3,4,5), A013954-A013972 for k = 6,7,...,24. - Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 05 2001.
Row sums of triangles A134575 and A134559. - Gary W. Adamson, Nov 02 2007
Also sum of square divisors of n^2. - Michel Marcus, Jan 14 2014
Conjecture: For each k = 2,3,..., all the rational numbers sigma_k(n)/n^k = Sum_{d|n} 1/d^k (n = 1,2,3,...) have pairwise distinct fractional parts. - Zhi-Wei Sun, Oct 15 2015
5 is the only prime entry in the sequence. - Drake Thomas, Dec 18 2016
4*a(n) = sum of squares of even divisors of 2*n. - Wolfdieter Lang, Jan 07 2017
REFERENCES
M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 827.
T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1976, page 38.
D. M. Bressoud, Proofs and Confirmations, Camb. Univ. Press, 1999; p. 11.
P. A. MacMahon, The connexion between the sum of the squares of the divisors and the number of partitions of a given number, Messenger Math., 54 (1924), 113-116. Collected Papers, MIT Press, 1978, Vol. I, pp. 1364-1367. See Table I. The entry 53 should be 50. - N. J. A. Sloane, May 21 2014
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
George E. Andrews, Stacked lattice boxes, Ann. Comb. 3 (1999), 115-130. See (2.3).
Joerg Arndt, On computing the generalized Lambert series, arXiv:1202.6525v3 [math.CA], (2012).
Y. Puri and T. Ward, Arithmetic and growth of periodic orbits, J. Integer Seqs., Vol. 4 (2001), #01.2.1.
Eric Weisstein's World of Mathematics, Divisor Function
FORMULA
G.f.: Sum_{k>0} k^2 x^k/(1-x^k). Dirichlet g.f.: zeta(s)*zeta(s-2). - Michael Somos, Apr 05 2003
Multiplicative with a(p^e) = (p^(2e+2)-1)/(p^2-1). - David W. Wilson, Aug 01 2001
G.f. for sigma_k(n): Sum_{m>0} m^k*x^m/(1-x^m). - Vladeta Jovovic, Oct 18 2002
L.g.f.: -log(Product_{j>=1} (1-x^j)^j) = Sum_{n>=1} a(n)/n*x^n. - Joerg Arndt, Feb 04 2011
Equals A127093 * [1, 2, 3, ...]. - Gary W. Adamson, May 10 2007
Equals A051731 * [1, 4, 9, 16, 25, ...]. A051731 * [1/1, 1/2, 1/3, 1/4, ...] = [1/1, 5/4, 10/9, 21/16, 26/25, ...]. - Gary W. Adamson, Nov 02 2007
Row sums of triangle A134841. - Gary W. Adamson, Nov 12 2007
a(n) = A035316(n^2). - Michel Marcus, Jan 14 2014
Conjecture: a(n) = sigma(n^2*rad(n))/sigma(rad(n)), where sigma = A000203 and rad = A007947. - Velin Yanev, Aug 20 2017
G.f.: Sum_{k>=1} x^k*(1 + x^k)/(1 - x^k)^3. - Ilya Gutkovskiy, Oct 24 2018
a(n) = a(n/4) + A050461(n) + A076577(n/2) + A050465(n) where A(.) are zero for non-integer arguments. - R. J. Mathar, May 25 2020
Sum_{k>=1} 1/a(k) = A109694 = 1.53781289182725616253866100273826833091936004947322354929617689659426330445... - Vaclav Kotesovec, Sep 26 2020
G.f.: Sum_{n >= 1} q^(n^2)*(n^2 - ((n-1)^2 - 2)*q^n - ((n+1)^2 - 2)*q^(2*n) + n^2*q^(3*n))/(1 - q^n)^3 - apply the operator x*d/dx twice to equation 5 in Arndt and set x = 1. - Peter Bala, Jan 21 2021
From Vaclav Kotesovec, Aug 07 2022: (Start)
Sum_{k=1..n} a(k) = A064602(n) ~ zeta(3) * n^3 / 3.
Sum_{k=1..n} (-1)^k * a(k) ~ zeta(3) * n^3 / 24. (End)
a(n) = Sum_{1 <= i, j <= n} tau(gcd(i, j, n)) = Sum_{d divides n} tau(d) * J_2(n/d), where the divisor function tau(n) = A000005(n) and the Jordan totient function J_2(n) = A007434(n). - Peter Bala, Jan 22 2024
MAPLE
with(numtheory); A001157 := n->sigma[2](n); [seq(sigma[2](n), n=1..100)];
MATHEMATICA
Table[DivisorSigma[2, n], {n, 1, 50}] (* Stefan Steinerberger, Mar 24 2006 *)
DivisorSigma[2, Range[50]] (* Harvey P. Dale, Aug 22 2016 *)
PROG
(PARI) a(n)=if(n<1, 0, sigma(n, 2))
(PARI) a(n)=if(n<1, 0, direuler(p=2, n, 1/(1-X)/(1-p^2*X))[n])
(PARI) a(n)=if(n<1, 0, n*polcoeff(sum(k=1, n, x^k/(x^k-1)^2/k, x*O(x^n)), n)) /* Michael Somos, Jan 29 2005 */
(PARI) N=99; q='q+O('q^N); Vec(sum(n=1, N, n^2*q^n/(1-q^n))) /* Joerg Arndt, Feb 04 2011 */
(PARI) a(n) = sumdiv(n^2, d, issquare(d)*d); \\ Michel Marcus, Jan 14 2014
(Sage) [sigma(n, 2)for n in range(1, 51)] # Zerinvary Lajos, Jun 04 2009
(Maxima) makelist(divsum(n, 2), n, 1, 20); \\ Emanuele Munarini, Mar 26 2011
(Haskell)
a001157 n = s n 1 1 a000040_list where
s 1 1 y _ = y
s m x y ps'@(p:ps)
| m `mod` p == 0 = s (m `div` p) (x * p^2) y ps'
| x > 1 = s m 1 (y * (x * p^2 - 1) `div` (p^2 - 1)) ps
| otherwise = s m 1 y ps
-- Reinhard Zumkeller, Jul 10 2011
(Magma) [DivisorSigma(2, n): n in [1..50]]; // Bruno Berselli, Apr 10 2013
(Python)
from sympy import divisor_sigma
def a(n): return divisor_sigma(n, 2)
print([a(n) for n in range(1, 51)]) # Michael S. Branicky, Jan 05 2021
(Python)
from math import prod
from sympy import factorint
def a(n): return prod((p**(2*e+2)-1)//(p**2-1) for p, e in factorint(n).items())
print([a(n) for n in range(1, 51)]) # Michael S. Branicky, Feb 25 2024
CROSSREFS
Cf. also A192794, A082063 (gcd(a(n),n) and its largest prime factor); A179931, A192795 (gcd(a(n),A000203(n)) and largest prime factor).
Main diagonal of the array in A242639.
Cf. A333972 (Dgf at s=4).
KEYWORD
nonn,core,nice,easy,mult
STATUS
approved
a(n) = Sum_{d|n, n/d == 1 (mod 4)} d^2 - Sum_{d|n, n/d == 3 (mod 4)} d^2.
+10
20
1, 4, 8, 16, 26, 32, 48, 64, 73, 104, 120, 128, 170, 192, 208, 256, 290, 292, 360, 416, 384, 480, 528, 512, 651, 680, 656, 768, 842, 832, 960, 1024, 960, 1160, 1248, 1168, 1370, 1440, 1360, 1664, 1682, 1536, 1848, 1920, 1898, 2112, 2208, 2048, 2353, 2604
OFFSET
1,2
COMMENTS
Number 7 of the 74 eta-quotients listed in Table I of Martin (1996).
Ramanujan theta functions: f(q) (see A121373), phi(q) (A000122), psi(q) (A010054), chi(q) (A000700).
Multiplicative because it is the Dirichlet convolution of A000290 = n^2 and A101455 = [1 0 -1 0 1 0 -1 ...], which are both multiplicative. - Christian G. Bower, May 17 2005
LINKS
J. W. L. Glaisher, On the representations of a number as the sum of two, four, six, eight, ten, and twelve squares, Quart. J. Math. 38 (1907), 1-62 (see p. 4 and p. 8).
Yves Martin, Multiplicative eta-quotients, Trans. Amer. Math. Soc. 348 (1996), no. 12, 4825-4856, see page 4852 Table I.
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions.
FORMULA
G.f.: Sum_{n>=1} n^2*x^n/(1+x^(2*n)). - Vladeta Jovovic, Oct 16 2002
From Michael Somos, Aug 08 2005: (Start)
Euler transform of period 4 sequence [ 4, -2, 4, -6, ...].
Expansion of eta(q^2)^6 * eta(q^4)^4 / eta(q)^4 in powers of q.
G.f.: x Product_{k>0} (1 + x^k)^4 * (1 - x^(2*k))^2 * (1 - x^(4*k))^4.
G.f. A(x) satisfies 0 = f(A(x), A(x^2), A(x^4)) where f(u, v, w) = u*w * (u - 8*v) * (v - 4*w) - v^2 * (v - 8*w)^2. (End)
G.f.: Sum_{k>0} Kronecker(-4, k) * x^k * (1 + x^k) / (1 - x^k)^3. - Michael Somos, Sep 02 2005
Expansion of q * phi(q)^2 * psi(q^2)^4 in powers of q where phi(), psi() are Ramanujan theta functions. - Michael Somos, Aug 15 2007
G.f. is a period 1 Fourier series which satisfies f(-1 / (4 t)) = (1/2) (t/i)^3 g(t) where q = exp(2 Pi i t) and g() is the g.f. for A120030.
a(n) = A050461(n) - A050465(n). - Reinhard Zumkeller, Mar 06 2012
Multiplicative with a(p^e) = ((p^2)^(e+1) - Chi(p)^(e+1))/(p^2 - Chi(p)), Chi = A101455. - Jianing Song, Oct 30 2019
Sum_{k=1..n} a(k) ~ c * n^3 / 3, where c = Pi^3/32 (A153071). - Amiram Eldar, Nov 04 2023
a(n) = Sum_{d|n} (n/d)^2*sin(d*Pi/2). - Ridouane Oudra, Sep 26 2024
EXAMPLE
G.f. = q + 4*q^2 + 8*q^3 + 16*q^4 + 26*q^5 + 32*q^6 + 48*q^7 + 64*q^8 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ q (QPochhammer[ q^2]^3 (QPochhammer[ q^4] / QPochhammer[ q])^2)^2, {q, 0, n}]; (* Michael Somos, May 17 2015 *)
a[ n_] := SeriesCoefficient[ (EllipticTheta[ 3, 0, q] EllipticTheta[ 2, 0, q]^2 / 4)^2, {q, 0, n}]; (* Michael Somos, May 17 2015 *)
a[ n_] := If[ n < 1, 0, Sum[ d^2 Mod[n/d, 2] (-1)^Quotient[n/d, 2], {d, Divisors@n}]]; (* Michael Somos, May 17 2015 *)
s[n_] := If[OddQ[n], (-1)^((n-1)/2), 0]; (* A101455 *)
f[p_, e_] := (p^(2*e+2) - s[p]^(e+1))/(p^2 - s[p]); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Nov 04 2023 *)
PROG
(PARI) {a(n) = if( n<1, 0, sumdiv( n, d, d^2 * (n/d%2) * (-1)^(n/d\2)))};
(PARI) {a(n) = my(A); if( n<1, 0, n--; A = x * O(x^n); polcoeff( eta(x^2 + A)^6 * (eta(x^4 + A) / eta(x + A))^4, n))}; /* Michael Somos, May 17 2015 */
(Haskell)
a050470 n = a050461 n - a050465 n -- Reinhard Zumkeller, Mar 06 2012
(Magma) Basis( ModularForms( Gamma1(4), 3), 51) [2]; /* Michael Somos, May 17 2015 */
(Python)
from math import prod
from sympy import factorint
def A050470(n): return prod((p**(e+1<<1)-(m:=(0, 1, 0, -1)[p&3]))//(p**2-m) for p, e in factorint(n).items()) # Chai Wah Wu, Jun 21 2024
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
N. J. A. Sloane, Dec 23 1999
STATUS
approved
a(n) = Sum_{d|n, n/d=1 mod 4} d.
+10
11
1, 2, 3, 4, 6, 6, 7, 8, 10, 12, 11, 12, 14, 14, 18, 16, 18, 20, 19, 24, 22, 22, 23, 24, 31, 28, 30, 28, 30, 36, 31, 32, 34, 36, 42, 40, 38, 38, 42, 48, 42, 44, 43, 44, 60, 46, 47, 48, 50, 62, 54, 56, 54, 60, 66, 56, 58, 60, 59, 72, 62, 62, 73, 64, 84, 68
OFFSET
1,2
COMMENTS
Not multiplicative: a(3)*a(7) <> a(21), for example.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{n>0} n*x^n/(1-x^(4*n)). - Vladeta Jovovic, Nov 14 2002
G.f.: Sum_{k>0} x^(4*k-3) / (1 - x^(4*k-3))^2. - Seiichi Manyama, Jun 29 2023
from Amiram Eldar, Nov 05 2023: (Start)
a(n) = A002131(n) - A050464(n).
a(n) = A050469(n) + A050464(n).
a(n) = (A002131(n) + A050469(n))/2.
Sum_{k=1..n} a(k) ~ c * n^2 / 2, where c = A222183. (End)
MAPLE
A050460 := proc(n)
a := 0 ;
for d in numtheory[divisors](n) do
if (n/d) mod 4 = 1 then
a := a+d ;
end if;
end do:
a;
end proc:
seq(A050460(n), n=1..40) ; # R. J. Mathar, Dec 20 2011
MATHEMATICA
a[n_] := DivisorSum[n, Boole[Mod[n/#, 4] == 1]*#&]; Array[a, 70] (* Jean-François Alcover, Dec 01 2015 *)
PROG
(PARI) a(n)=sumdiv(n, d, if(n/d%4==1, d)) \\ Charles R Greathouse IV, Dec 04 2013
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 23 1999
STATUS
approved
a(n) = Sum_{d|n, n/d=3 mod 4} d^2.
+10
7
0, 0, 1, 0, 0, 4, 1, 0, 9, 0, 1, 16, 0, 4, 26, 0, 0, 36, 1, 0, 58, 4, 1, 64, 0, 0, 82, 16, 0, 104, 1, 0, 130, 0, 26, 144, 0, 4, 170, 0, 0, 232, 1, 16, 234, 4, 1, 256, 49, 0, 290, 0, 0, 328, 26, 64, 370, 0, 1, 416, 0, 4, 523, 0, 0, 520, 1, 0, 538, 104, 1, 576, 0
OFFSET
1,6
LINKS
FORMULA
a(n) = A050461(n) - A050470(n). - Reinhard Zumkeller, Mar 06 2012
From Amiram Eldar, Nov 05 2023: (Start)
a(n) = A076577(n) - A050461(n).
a(n) = (A076577(n) - A050470(n))/2.
Sum_{k=1..n} a(k) ~ c * n^3 / 3, where c = 7*zeta(3)/16 - Pi^3/64 = 0.041426822002... . (End)
MATHEMATICA
a[n_] := DivisorSum[n, #^2 &, Mod[n/#, 4] == 3 &]; Array[a, 100] (* Amiram Eldar, Nov 05 2023 *)
PROG
(Haskell)
a050465 n = sum [d ^ 2 | d <- a027750_row n, mod (div n d) 4 == 3]
-- Reinhard Zumkeller, Mar 06 2012
(PARI) a(n) = sumdiv(n, d, (n/d % 4 == 3) * d^2); \\ Amiram Eldar, Nov 05 2023
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 23 1999
EXTENSIONS
Offset fixed by Reinhard Zumkeller, Mar 06 2012
STATUS
approved
a(n) = Sum_{d|n, n/d=1 mod 4} d^3.
+10
5
1, 8, 27, 64, 126, 216, 343, 512, 730, 1008, 1331, 1728, 2198, 2744, 3402, 4096, 4914, 5840, 6859, 8064, 9262, 10648, 12167, 13824, 15751, 17584, 19710, 21952, 24390, 27216, 29791, 32768, 35938, 39312, 43218, 46720, 50654, 54872, 59346
OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Robert G. Wilson v)
FORMULA
From Amiram Eldar, Nov 05 2023: (Start)
a(n) = A007331(n) - A050466(n).
a(n) = A050471(n) + A050466(n).
a(n) = (A007331(n) + A050471(n))/2.
Sum_{k=1..n} a(k) ~ c * n^4 / 4, where c = Pi^4/192 + A175572/2 = 1.00181129167264... . (End)
MATHEMATICA
a[n_] := Total[(n/Select[Divisors@ n, Mod[#, 4] == 1 &])^3]; Array[a, 39] (* Robert G. Wilson v, Mar 26 2015 *)
a[n_] := DivisorSum[n, #^3 &, Mod[n/#, 4] == 1 &]; Array[a, 50] (* Amiram Eldar, Nov 05 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, ((n/d % 4)== 1)* d^3); \\ Michel Marcus, Mar 26 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 23 1999
EXTENSIONS
Offset changed from 0 to 1 by Robert G. Wilson v, Mar 27 2015
STATUS
approved
a(n) = Sum_{d|n, n/d=1 mod 4} d^4.
+10
5
1, 16, 81, 256, 626, 1296, 2401, 4096, 6562, 10016, 14641, 20736, 28562, 38416, 50706, 65536, 83522, 104992, 130321, 160256, 194482, 234256, 279841, 331776, 391251, 456992, 531522, 614656, 707282, 811296, 923521, 1048576, 1185922
OFFSET
1,2
LINKS
FORMULA
From Amiram Eldar, Nov 05 2023: (Start)
a(n) = A285989(n) - A050467(n).
a(n) = A050468(n) + A050467(n).
a(n) = (A050468(n) + A285989(n))/2.
Sum_{k=1..n} a(k) ~ c * n^5 / 5, where c = 5*Pi^5/3072 + 31*zeta(5)/64 = 1.000340795436113... . (End)
MATHEMATICA
a[n_] := DivisorSum[n, #^4 &, Mod[n/#, 4] == 1 &]; Array[a, 50] (* Amiram Eldar, Jul 08 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, (n/d % 4 == 1) * d^4); \\ Amiram Eldar, Nov 05 2023
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 23 1999
EXTENSIONS
Offset changed from 0 to 1 by Seiichi Manyama, Jul 08 2023
STATUS
approved

Search completed in 0.013 seconds