cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-7 of 7 results.

A050999 Sum of squares of odd divisors of n.

Original entry on oeis.org

1, 1, 10, 1, 26, 10, 50, 1, 91, 26, 122, 10, 170, 50, 260, 1, 290, 91, 362, 26, 500, 122, 530, 10, 651, 170, 820, 50, 842, 260, 962, 1, 1220, 290, 1300, 91, 1370, 362, 1700, 26, 1682, 500, 1850, 122, 2366, 530, 2210, 10, 2451, 651, 2900, 170, 2810, 820, 3172, 50, 3620, 842, 3482
Offset: 1

Views

Author

Keywords

Comments

Denoted by Delta_2(n) in Glaisher 1907. - Michael Somos, May 17 2013
The sum of squares of even divisors of 2*k = 4*A001157(k), and the sum of squares of even divisors of 2*k-1 vanishes, for k >= 1. - Wolfdieter Lang, Jan 07 2017

Examples

			x + x^2 + 10*x^3 + x^4 + 26*x^5 + 10*x^6 + 50*x^7 + x^8 + 91*x^9 + 26*x^10 + ...
		

References

  • 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).

Crossrefs

Programs

  • Haskell
    a050999 = sum . map (^ 2) . a182469_row
    -- Reinhard Zumkeller, May 01 2012
    
  • Mathematica
    a[n_] := 1/2*Sum[(1 - (-1)^d)*d^2, {d, Divisors[n]}]; Table[a[n], {n, 1, 59}] (* Jean-François Alcover, Oct 23 2012, from 2nd formula *)
    a[ n_] := If[ n < 1, 0, Sum[ Mod[ d, 2] d^2, {d, Divisors@n}]] (* Michael Somos, May 17 2013 *)
    f[p_, e_] := If[p == 2, 1, (p^(2*e + 2) - 1)/(p^2 - 1)]; a[1] = 1; a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 100] (* Amiram Eldar, Nov 22 2020 *)
    Table[Total[Select[Divisors[n],OddQ]^2],{n,80}] (* Harvey P. Dale, Jul 19 2024 *)
  • PARI
    a(n)=sumdiv(n,d, if(d%2==1, d^2, 0 ) );  /* Joerg Arndt, Oct 07 2012 */
    
  • Python
    from sympy import divisor_sigma
    def A050999(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),2)) # Chai Wah Wu, Jul 16 2022

Formula

From Vladeta Jovovic, Sep 10 2001: (Start)
Multiplicative with a(p^e) = 1 if p = 2, (p^(2e+2)-1)/(p^2-1) if p > 2.
a(n) = (1/2)*Sum_{d|n} (1-(-1)^d)*d^2.
a(2n) = sigma_2(2n) - 4*sigma_2(n), a(2n+1) = sigma_2(2n+1), where sigma_2(n) is sum of squares of divisors of n (A001157).
More generally, if b(n, k) is the sum of k-th powers of odd divisors of n then b(2n, k) = sigma_k(2n)-2^k*sigma_k(n), b(2n+1, k) = sigma_k(2n+1). b(n, k) is multiplicative with a(p^e) = 1 if p = 2, (p^(k*e+k)-1)/(p^k-1) if p > 2. (End)
G.f. for b(n, k): Sum_{m>0} m^k*x^m*(1-(2^k-1)*x^m)/(1-x^(2*m)). - Vladeta Jovovic, Oct 19 2002
Dirichlet g.f. (1-2^(2-s))*zeta(s)*zeta(s-2). - R. J. Mathar, Apr 06 2011
Dirichlet convolution of A001157 with [1,-4,0,0,0,0...]. Dirichlet convolution of [1,-3,1,-3,1,-3,..] with A000290. Dirichlet convolution of [1,0,9,0,25,0,49,0,81,...] with A000012 (or A057427). - R. J. Mathar, Jun 28 2011
a(n) = sum(A182469(n,k)^2: k=1..A001227(n)). [Reinhard Zumkeller, May 01 2012]
Sum_{k=1..n} a(k) ~ zeta(3) * n^3 / 6. - Vaclav Kotesovec, Nov 09 2018
G.f.: Sum_{n >= 1} x^n*(1 + 6*x^(2*n) + x^(4*n))/(1 - x^(2*n))^3. - Peter Bala, Dec 19 2021
Sum_{k=1..n} (-1)^(k+1) * a(k) ~ zeta(3) * n^3 / 8. - Vaclav Kotesovec, Aug 07 2022

A321810 Sum of 6th powers of odd divisors of n.

Original entry on oeis.org

1, 1, 730, 1, 15626, 730, 117650, 1, 532171, 15626, 1771562, 730, 4826810, 117650, 11406980, 1, 24137570, 532171, 47045882, 15626, 85884500, 1771562, 148035890, 730, 244156251, 4826810, 387952660, 117650, 594823322, 11406980, 887503682
Offset: 1

Views

Author

N. J. A. Sloane, Nov 24 2018

Keywords

Crossrefs

Column k=6 of A285425.
Cf. A050999, A051000, A051001, A051002, A321811 - A321816 (analog for 2nd .. 12th powers).
Cf. A321543 - A321565, A321807 - A321836 for related sequences.

Programs

  • Mathematica
    f[2, e_] := 1; f[p_, e_] := (p^(6*e + 6) - 1)/(p^6 - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Nov 02 2022 *)
  • PARI
    apply( A321810(n)=sigma(n>>valuation(n,2),6), [1..30]) \\ M. F. Hasler, Nov 26 2018
    
  • Python
    from sympy import divisor_sigma
    def A321810(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),6)) # Chai Wah Wu, Jul 16 2022

Formula

a(n) = A013954(A000265(n)) = sigma_6(odd part of n); in particular, a(2^k) = 1 for all k >= 0. - M. F. Hasler, Nov 26 2018
G.f.: Sum_{k>=1} (2*k - 1)^6*x^(2*k-1)/(1 - x^(2*k-1)). - Ilya Gutkovskiy, Dec 22 2018
From Amiram Eldar, Nov 02 2022: (Start)
Multiplicative with a(2^e) = 1 and a(p^e) = (p^(6*e+6)-1)/(p^6-1) for p > 2.
Sum_{k=1..n} a(k) ~ c * n^7, where c = zeta(7)/14 = 0.0720249... . (End)
a(n) + a(n/2)*2^6 = A013954(n) where a(.)=0 for non-integer arguments. - R. J. Mathar, Aug 15 2023

A321811 Sum of 7th powers of odd divisors of n.

Original entry on oeis.org

1, 1, 2188, 1, 78126, 2188, 823544, 1, 4785157, 78126, 19487172, 2188, 62748518, 823544, 170939688, 1, 410338674, 4785157, 893871740, 78126, 1801914272, 19487172, 3404825448, 2188, 6103593751, 62748518, 10465138360, 823544, 17249876310
Offset: 1

Views

Author

N. J. A. Sloane, Nov 24 2018

Keywords

Crossrefs

Column k=7 of A285425.
Cf. A050999, A051000, A051001, A051002, A321810 - A321816 (analog for 2nd .. 12th powers).
Cf. A321543 - A321565, A321807 - A321836 for related sequences.

Programs

  • Mathematica
    a[n_] := DivisorSum[n, #^7 &, OddQ[#] &]; Array[a, 20] (* Amiram Eldar, Dec 07 2018 *)
  • PARI
    apply( A321811(n)=sigma(n>>valuation(n,2),7), [1..30]) \\ M. F. Hasler, Nov 26 2018
    
  • Python
    from sympy import divisor_sigma
    def A321811(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),7)) # Chai Wah Wu, Jul 16 2022

Formula

a(n) = A013955(A000265(n)) = sigma_7(odd part of n); in particular, a(2^k) = 1 for all k >= 0. - M. F. Hasler, Nov 26 2018
G.f.: Sum_{k>=1} (2*k - 1)^7*x^(2*k-1)/(1 - x^(2*k-1)). - Ilya Gutkovskiy, Dec 07 2018
From Amiram Eldar, Nov 02 2022: (Start)
Multiplicative with a(2^e) = 1 and a(p^e) = (p^(7*e+7)-1)/(p^7-1) for p > 2.
Sum_{k=1..n} a(k) ~ c * n^8, where c = zeta(8)/16 = Pi^8/151200 = 0.0627548... . (End)

A321812 Sum of 8th powers of odd divisors of n.

Original entry on oeis.org

1, 1, 6562, 1, 390626, 6562, 5764802, 1, 43053283, 390626, 214358882, 6562, 815730722, 5764802, 2563287812, 1, 6975757442, 43053283, 16983563042, 390626, 37828630724, 214358882, 78310985282, 6562, 152588281251, 815730722, 282472589764
Offset: 1

Views

Author

N. J. A. Sloane, Nov 24 2018

Keywords

Crossrefs

Column k=8 of A285425.
Cf. A050999, A051000, A051001, A051002, A321810 - A321816 (analog for 2nd .. 12th powers).
Cf. A321543 - A321565, A321807 - A321836 for related sequences.

Programs

  • Mathematica
    a[n_] := DivisorSum[n, #^8 &, OddQ[#] &]; Array[a, 20] (* Amiram Eldar, Dec 07 2018 *)
  • PARI
    apply( A321812(n)=sigma(n>>valuation(n,2),8), [1..30]) \\ M. F. Hasler, Nov 26 2018
    
  • Python
    from sympy import divisor_sigma
    def A321812(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),8)) # Chai Wah Wu, Jul 16 2022

Formula

a(n) = A013956(A000265(n)) = sigma_8(odd part of n); in particular, a(2^k) = 1 for all k >= 0. - M. F. Hasler, Nov 26 2018
G.f.: Sum_{k>=1} (2*k - 1)^8*x^(2*k-1)/(1 - x^(2*k-1)). - Ilya Gutkovskiy, Dec 07 2018
From Amiram Eldar, Nov 02 2022: (Start)
Multiplicative with a(2^e) = 1 and a(p^e) = (p^(8*e+8)-1)/(p^8-1) for p > 2.
Sum_{k=1..n} a(k) ~ c * n^9, where c = zeta(9)/18 = 0.0556671... . (End)

A321813 Sum of 9th powers of odd divisors of n.

Original entry on oeis.org

1, 1, 19684, 1, 1953126, 19684, 40353608, 1, 387440173, 1953126, 2357947692, 19684, 10604499374, 40353608, 38445332184, 1, 118587876498, 387440173, 322687697780, 1953126, 794320419872, 2357947692, 1801152661464, 19684, 3814699218751
Offset: 1

Views

Author

N. J. A. Sloane, Nov 24 2018

Keywords

Crossrefs

Column k=9 of A285425.
Cf. A050999, A051000, A051001, A051002, A321810 - A321816 (analog for 2nd .. 12th powers).
Cf. A321543 - A321565, A321807 - A321836 for related sequences.

Programs

  • Mathematica
    a[n_] := DivisorSum[n, #^9 &, OddQ[#] &]; Array[a, 20] (* Amiram Eldar, Dec 07 2018 *)
  • PARI
    apply( A321813(n)=sigma(n>>valuation(n,2),9), [1..30]) \\ M. F. Hasler, Nov 26 2018
    
  • Python
    from sympy import divisor_sigma
    def A321813(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),9)) # Chai Wah Wu, Jul 16 2022

Formula

a(n) = A013957(A000265(n)) = sigma_9(odd part of n); in particular, a(2^k) = 1 for all k >= 0. - M. F. Hasler, Nov 26 2018
G.f.: Sum_{k>=1} (2*k - 1)^9*x^(2*k-1)/(1 - x^(2*k-1)). - Ilya Gutkovskiy, Dec 07 2018
From Amiram Eldar, Nov 02 2022: (Start)
Multiplicative with a(2^e) = 1 and a(p^e) = (p^(9*e+9)-1)/(p^9-1) for p > 2.
Sum_{k=1..n} a(k) ~ c * n^10, where c = zeta(10)/20 = Pi^10/1871100 = 0.0500497... . (End)

A321814 Sum of 10th powers of odd divisors of n.

Original entry on oeis.org

1, 1, 59050, 1, 9765626, 59050, 282475250, 1, 3486843451, 9765626, 25937424602, 59050, 137858491850, 282475250, 576660215300, 1, 2015993900450, 3486843451, 6131066257802, 9765626, 16680163512500, 25937424602, 41426511213650, 59050
Offset: 1

Views

Author

N. J. A. Sloane, Nov 24 2018

Keywords

Crossrefs

Column k=10 of A285425.
Cf. A050999, A051000, A051001, A051002, A321810 - A321816 (analog for 2nd .. 12th powers).
Cf. A321543 - A321565, A321807 - A321836 for related sequences.

Programs

  • Mathematica
    a[n_] := DivisorSum[n, #^10 &, OddQ[#] &]; Array[a, 20] (* Amiram Eldar, Dec 07 2018 *)
  • PARI
    apply( A321814(n)=sigma(n>>valuation(n,2),10), [1..30]) \\ M. F. Hasler, Nov 26 2018
    
  • Python
    from sympy import divisor_sigma
    def A321814(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),10)) # Chai Wah Wu, Jul 16 2022

Formula

a(n) = A013958(A000265(n)) = sigma_10(odd part of n); in particular, a(2^k) = 1 for all k >= 0. - M. F. Hasler, Nov 26 2018
G.f.: Sum_{k>=1} (2*k - 1)^10*x^(2*k-1)/(1 - x^(2*k-1)). - Ilya Gutkovskiy, Dec 07 2018
From Amiram Eldar, Nov 02 2022: (Start)
Multiplicative with a(2^e) = 1 and a(p^e) = (p^(10*e+10)-1)/(p^10-1) for p > 2.
Sum_{k=1..n} a(k) ~ c * n^11, where c = zeta(11)/22 = 0.045477... . (End)

A321815 Sum of 11th powers of odd divisors of n.

Original entry on oeis.org

1, 1, 177148, 1, 48828126, 177148, 1977326744, 1, 31381236757, 48828126, 285311670612, 177148, 1792160394038, 1977326744, 8649804864648, 1, 34271896307634, 31381236757, 116490258898220, 48828126, 350279478046112, 285311670612, 952809757913928
Offset: 1

Views

Author

N. J. A. Sloane, Nov 24 2018

Keywords

Crossrefs

Column k=11 of A285425.
Cf. A050999, A051000, A051001, A051002, A321810 - A321816 (analog for 2nd .. 12th powers).
Cf. A321543 - A321565, A321807 - A321836 for related sequences.

Programs

  • GAP
    List(List(List([1..25],j->DivisorsInt(j)),i->Filtered(i,k->IsOddInt(k))),m->Sum(m,n->n^11)); # Muniru A Asiru, Dec 07 2018
    
  • Mathematica
    a[n_] := DivisorSum[n, #^11&, OddQ[#]&]; Array[a, 20] (* Amiram Eldar, Dec 07 2018 *)
  • PARI
    apply( A321815(n)=sigma(n>>valuation(n,2),11), [1..30]) \\ M. F. Hasler, Nov 26 2018
    
  • Python
    from sympy import divisor_sigma
    def A321815(n): return int(divisor_sigma(n>>(~n&n-1).bit_length(),11)) # Chai Wah Wu, Jul 16 2022

Formula

a(n) = A013959(A000265(n)) = sigma_11(odd part of n); in particular, a(2^k) = 1 for all k >= 0. - M. F. Hasler, Nov 26 2018
G.f.: Sum_{k>=1} (2*k - 1)^11*x^(2*k-1)/(1 - x^(2*k-1)). - Ilya Gutkovskiy, Dec 22 2018
From Amiram Eldar, Nov 02 2022: (Start)
Multiplicative with a(2^e) = 1 and a(p^e) = (p^(11*e+11)-1)/(p^11-1) for p > 2.
Sum_{k=1..n} a(k) ~ c * n^12, where c = zeta(12)/24 = 691*Pi^12/15324309000 = 0.0416769... . (End)
Showing 1-7 of 7 results.