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.

A060046 Generalized sum of divisors function: third diagonal of A060047.

Original entry on oeis.org

1, 2, 4, 8, 14, 24, 40, 56, 84, 122, 168, 232, 312, 408, 528, 672, 865, 1078, 1336, 1648, 2002, 2424, 2912, 3472, 4116, 4872, 5744, 6648, 7752, 8976, 10304, 11872, 13566, 15424, 17556, 19896, 22414, 25256, 28336, 31584, 35462, 39482, 43728, 48664
Offset: 9

Views

Author

N. J. A. Sloane, Mar 19 2001

Keywords

Crossrefs

Cf. A015128.

Programs

  • Mathematica
    nmax = 60; Drop[CoefficientList[Series[-1/3 * Sum[(-1)^k*k*Binomial[k + 2, 5]*x^(k^2), {k, 3, nmax}]/(1 + 2*Sum[(-x)^(k^2), {k, 1, nmax}]), {x, 0, nmax}], x], 9] (* Vaclav Kotesovec, Jul 30 2025 *)

Formula

G.f.: (t(1)^3-3*t(1)*t(2)+2*t(3))/6 where t(i) = Sum((x^(2*n-1)/(1-x^(2*n-1))^2)^i,n=1..inf), i=1..3. - Vladeta Jovovic, Sep 21 2007
G.f.: -(1/3) * ( Sum_{k>=3} (-1)^k * k * binomial(k+2,5) * q^(k^2) ) / ( 1 + 2 * Sum_{k>=1} (-q)^(k^2) ). - Seiichi Manyama, Sep 15 2023

Extensions

More terms from Naohiro Nomoto, Jan 24 2002
More terms from Vladeta Jovovic, Sep 21 2007

A002131 Sum of divisors d of n such that n/d is odd.

Original entry on oeis.org

1, 2, 4, 4, 6, 8, 8, 8, 13, 12, 12, 16, 14, 16, 24, 16, 18, 26, 20, 24, 32, 24, 24, 32, 31, 28, 40, 32, 30, 48, 32, 32, 48, 36, 48, 52, 38, 40, 56, 48, 42, 64, 44, 48, 78, 48, 48, 64, 57, 62, 72, 56, 54, 80, 72, 64, 80, 60, 60, 96, 62, 64, 104, 64, 84, 96, 68, 72, 96, 96, 72
Offset: 1

Views

Author

Keywords

Comments

Glaisher calls this Delta'(n) or Delta'1(n). - _N. J. A. Sloane, Nov 24 2018
Equals row sums of triangle A143119. - Gary W. Adamson, Jul 26 2008
Cayley begins article 386 with "To find the value of A, = 8{q/(1-q)^2 + q^3/(1-q^3)^2 +&c.}," where A is 8 time the g.f. of this sequence. - Michael Somos, Aug 01 2011
a(n) = 2*(a(n-1) - a(n-4) + a(n-9) ... +- a(n-i^2) ...) up to the last positive number n - i^2, and if n is a square, then a(0) should be replaced by n/2 (cf. Halphen). - Michel Marcus, Oct 14 2012
From Omar E. Pol, Nov 26 2019: (Start)
a(n) is also the total number of odd parts in the partitions of n into equal parts.
a(n) = n iff n is a power of 2.
a(n) = n + 1 iff n is an odd prime. (End)

Examples

			G.f. = q + 2*q^2 + 4*q^3 + 4*q^4 + 6*q^5 + 8*q^6 + 8*q^7 + 8*q^8 + 13*q^9 + ...
The divisors of 6 are 1, 2, 3, and 6. Only 6/2 and 6/6 are odd. Hence, a(6) = 2 + 6 = 8.
As 120 = 15 * 2^3 where 15 is odd and 2^3 is the largest power of 2 dividing 120, a(120) = sigma(15) * 2^3 = 24 * 8 = 192. - _David A. Corneth_, Aug 12 2019
For n = 6 the partitions of 6 into equal parts are [6], [3,3], [2,2,2], [1,1,1,1,1,1]. There are 8 odd parts, so a(6) = 8. - _Omar E. Pol_, Nov 26 2019
		

References

  • A. Cayley, An Elementary Treatise on Elliptic Functions, G. Bell and Sons, London, 1895, p. 294, Art. 386.
  • G. Chrystal, Algebra: An elementary text-book for the higher classes of secondary schools and for colleges, 6th ed, Chelsea Publishing Co., New York 1959 Part II, p. 346 Exercise XXI(18). MR0121327 (22 #12066)
  • A. P. Prudnikov, Yu. A. Brychkov and O.I. Marichev, "Integrals and Series", Volume 1: "Elementary Functions", Chapter 4: "Finite Sums", New York, Gordon and Breach Science Publishers, 1986-1992, Eqs. (5.1.29.3), (5.1.29.9).
  • 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).

Crossrefs

A diagonal of A060047. Bisection A008438.

Programs

  • Haskell
    a002131 n = sum [d | d <- [1..n], mod n d == 0, odd $ div n d]
    -- Reinhard Zumkeller, Aug 14 2011
    
  • Magma
    [&+[d:d in Divisors(m)|IsOdd(Floor(m/d))] :m in [1..75]]; // Marius A. Burtea, Aug 12 2019
    
  • Maple
    a:= proc(n) local e;
      e:= 2^padic:-ordp(n,2);
      e*numtheory:-sigma(n/e)
    end proc:
    map(a, [$1..100]); # Robert Israel, Jul 05 2016
  • Mathematica
    a[n_]:=Total[Cases[Divisors[n], d_ /; OddQ[n/d]]]; Table[a[n],{n,1,71}] (* Jean-François Alcover, Mar 18 2011 *)
    a[ n_] := If[ n < 1, 0, DivisorSum[n, # / GCD[#, 2] &]] (* Michael Somos, Aug 01 2011 *)
    a[ n_] := With[{m = InverseEllipticNomeQ @ q}, SeriesCoefficient[ (1/8) EllipticK[ m] ( EllipticK[ m] - EllipticE[ m] ) / (Pi/2 )^2, {q, 0, n}]] (* Michael Somos, Aug 01 2011 *)
    Table[Total[Select[Divisors[n],OddQ[n/#]&]],{n,80}] (* Harvey P. Dale, Jun 05 2015 *)
    a[ n_] := SeriesCoefficient[ With[ {m = InverseEllipticNomeQ[q]}, (1/2) (EllipticK[ m] / Pi)^2 (D[ JacobiZeta[ JacobiAmplitude[x, m], m], x] /. x -> 0)], {q, 0, n}]; (* Michael Somos, Mar 17 2017 *)
    f[2, e_] := 2^e; f[p_, e_] := (p^(e+1)-1)/(p-1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 21 2020 *)
  • PARI
    {a(n) = if( n<1, 0, direuler( p=2, n, (1 - (p<3) * X) / ((1 - X) * (1 - p*X))) [n])}; /* Michael Somos, Apr 05 2003 */
    
  • PARI
    {a(n) = if( n<1, 0, sumdiv( n, d, d / gcd(d, 2)))}; /* Michael Somos, Apr 05 2003 */
    
  • PARI
    a(n) = my(v = valuation(n, 2)); sigma(n>>v)<David A. Corneth, Aug 12 2019
    
  • Python
    from math import prod
    from sympy import factorint
    def A002131(n): return prod(p**e if p == 2 else (p**(e+1)-1)//(p-1) for p, e in factorint(n).items()) # Chai Wah Wu, Dec 17 2021

Formula

Expansion of K(k^2) * (K(k^2) - E(k^2)) / (2 * Pi^2) in powers of q where q is Jacobi's nome and K(), E() are complete elliptic integrals. - Michael Somos, Aug 01 2011
Multiplicative with a(p^e) = p^e if p = 2; (p^(e+1)-1)/(p-1) if p > 2. - David W. Wilson, Aug 01 2001
a(n) = sigma(n) - sigma(n/2) for even n and = sigma(n) otherwise where sigma(n) is the sum of divisors of n (A000203). - Valery A. Liskovets, Apr 07 2002
G.f.: A(x) satisfies 0 = f(A(x), A(x^2), A(x^3), A(x^6)) where f(u1, u2, u3, u6) = 2*u1*u6 - u1*u3 - 10*u2*u6 + u2^2 + 2*u2*u3 + 9*u6^2. - Michael Somos, Apr 10 2005
G.f.: A(x) satisfies 0 = f(A(x), A(x^2), A(x^3), A(x^6)) where f(u1, u2, u3, u6) = (u2 - 3*u6)^2 - (u1 - 2*u2) * (u3 - 2*u6). - Michael Somos, Sep 06 2005
G.f.: Sum_{n>=1} n*x^n/(1-x^(2*n)). - Vladeta Jovovic, Oct 16 2002
G.f.: Sum_{k>0} x^(2*k - 1) / (1 - x^(2*k - 1))^2. - Michael Somos, Aug 17 2005
G.f.: (1/8) * theta_4''(0) / theta_4(0) = (Sum_{k>0} -(-1)^k * k^2 q^(k^2)) / (Sum_{k in Z} (-1)^k * q^(k^2)) where theta_4(u) is one of Jacobi's theta functions.
G.f.: A(q) = Z'(0) * K^2 / (2 * Pi^2) = (K - E) * K /(2 * Pi^2) where Z(u) is the Jacobi Zeta function and K, E are complete elliptic integrals. - Michael Somos, Sep 06 2005
Dirichlet g.f.: zeta(s) * zeta(s-1) * (1 - 1/2^s). - Michael Somos, Apr 05 2003
Moebius transform is A026741.
a(n) = n * Sum_{c|n} 1/c, where c are odd numbers (A005408) dividing n. a(n) = A069359(n) + n. a(n) = A000035(n) (*) A000027(n), where operation (*) denotes Dirichlet convolution, that is, convolution of type: a(n) = Sum_{d|n} b(d) * c(n/d) = Sum_{d|n} A000035(d) * A000027(n/d). -Jaroslav Krizek, Nov 07 2013
L.g.f.: Sum_{ k>0 } atanh(x^k) = Sum_{ n>0 } (a(n)/n)*x^n. - Benedict W. J. Irwin, Jul 05 2016
a(n) = A006519(n)*A000203(n/A006519(n)). - Robert Israel, Jul 05 2016
Sum_{k=1..n} a(k) ~ Pi^2 * n^2 /16. - Vaclav Kotesovec, Feb 01 2019
a(n) = (A000203(n) + A000593(n))/2. - Amiram Eldar, Aug 12 2019
From Peter Bala, Jan 06 2021: (Start)
G.f.: A(x) = (1/2)*Sum_{n = -oo..oo} x^(2*n+1)/(1 - x^(2*n+1))^2.
A(x) = Sum_{n = -oo..oo} x^(4*n+1)/(1 - x^(4*n+1))^2.
a(2*n) = 2*a(n); a(2*n+1) = A008438(n). (End)
Expansion of (-1/2) x (d phi(-x) / dx) / phi(-x) in powers of x where phi() is a Ramanujan theta function. - Michael Somos, Jul 01 2023

A060043 Triangle T(n,k), n >= 1, k >= 1, of generalized sum of divisors function, read by rows.

Original entry on oeis.org

1, 3, 1, 4, 3, 7, 9, 6, 1, 15, 12, 3, 30, 8, 9, 45, 15, 22, 67, 13, 1, 42, 99, 18, 3, 81, 135, 12, 9, 140, 175, 28, 22, 231, 231, 14, 51, 351, 306, 24, 1, 97, 551, 354, 24, 3, 188, 783, 465, 31, 9, 330, 1134, 540, 18, 22, 568, 1546, 681, 39, 51, 918, 2142, 765, 20
Offset: 1

Views

Author

N. J. A. Sloane, Mar 19 2001

Keywords

Comments

Lengths of rows are 1 1 2 2 2 3 3 3 3 ... (A003056).

Examples

			Triangle turned on its side begins:
1 3 4 7 6 12  8 15 13 18 ...
    1 3 9 15 30 45 67 99 ...
           1  3  9 22 42 ...
                       1 ...
For example, T(6,2) = 15.
		

Crossrefs

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
          b(n, i-1)+add(expand(b(n-i*j, i-1)*j*x), j=1..n/i)))
        end:
    T:= n-> (p-> seq(coeff(p, x, degree(p)-i), i=0..degree(p)-1))(b(n$2)):
    seq(T(n), n=1..20);  # Alois P. Heinz, Jul 21 2025
  • Mathematica
    Clear[diag, m]; nmax = 19; kmax = Floor[(Sqrt[8*nmax+1]-1)/2]; m[0] = 0; diag[k_] := diag[k] = Sum[q^(Sum[m[i], {i, 1, k}])/(Times @@ (1 - q^Array[m, k]))^2, Sequence @@ Table[{m[j], m[j-1]+1, nmax}, {j, 1, k}] // Evaluate] + O[q]^(nmax+1) // CoefficientList[#, q]&; Table[ Select[ Table[diag[k][[j+1]], {k, 1, kmax}], IntegerQ[#] && # > 0&] // Reverse, {j, 1, nmax}] // Flatten (* Jean-François Alcover, Jul 18 2017 *)

Formula

T(n, 1) = sum of divisors of n (A000203), T(n, k) = sum of s_1*s_2*...*s_k where s_1, s_2, ..., s_k are such that s_1*m_1 + s_2*m_2 + ... + s_k*m_k = n and the sum is over all such k-partitions of n.
G.f. for k-th diagonal (the k-th row of the sideways triangle shown in the example): Sum_{ m_1 < m_2 < ... < m_k} q^(m_1+m_2+...+m_k)/((1-q^m_1)*(1-q^m_2)*...*(1-q^m_k))^2 = Sum_n T(n, k)*q^n.
G.f. for k-th diagonal: (-1)^k * (1/(2*k+1)) * ( Sum_{j>=k} (-1)^j * (2*j+1) * binomial(j+k,2*k) * q^(j*(j+1)/2) ) / ( Sum_{j>=0} (-1)^j * (2*j+1) * q^(j*(j+1)/2) ). - Seiichi Manyama, Sep 15 2023

Extensions

More terms from Naohiro Nomoto, Jan 24 2002

A002132 Generalized sum of divisors function.

Original entry on oeis.org

1, 2, 4, 8, 14, 18, 28, 40, 52, 70, 88, 104, 140, 168, 196, 240, 278, 320, 380, 440, 504, 562, 644, 720, 808, 910, 1000, 1120, 1240, 1360, 1488, 1600, 1789, 1938, 2100, 2296, 2452, 2660, 2880, 3080, 3292, 3542, 3784, 4048, 4400, 4572, 4868, 5280, 5502, 5850
Offset: 4

Views

Author

Keywords

References

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

Crossrefs

A diagonal of A060047.
Cf. A015128.

Programs

  • Mathematica
    nmax = 60; Drop[CoefficientList[Series[1/2 * Sum[(-1)^k*k*Binomial[k + 1, 3]*x^(k^2), {k, 2, nmax}]/(1 + 2*Sum[(-x)^(k^2), {k, 1, nmax}]), {x, 0, nmax}], x], 4] (* Vaclav Kotesovec, Jul 30 2025 *)

Formula

G.f.: (1/2) * ( Sum_{k>=2} (-1)^k * k * binomial(k+1,3) * q^(k^2) ) / ( 1 + 2 * Sum_{k>=1} (-q)^(k^2) ). - Seiichi Manyama, Sep 15 2023

Extensions

More terms from Naohiro Nomoto and Vladeta Jovovic, Jan 25 2002

A060184 Triangle of generalized sum of divisors function, read by rows.

Original entry on oeis.org

1, 0, 1, 2, 0, -1, 1, 2, 1, 2, 0, 0, 1, 2, 1, 1, -2, 0, 1, 3, 1, 5, 6, 0, 0, -1, -1, 2, 1, 5, 5, -2, 0, -2, -3, 2, 2, 9, 10, 0, 1, 4, 3, 0, 4, 0, 2, 9, 9, -3, 1, 3, -2, -7, 2, 0, 3, 14, 16, 0, 2, 6, -1, -9, 2, 0, 3, 15, 17, -2, 1, 8, 19, 10, -6, 4, 0, -1, 0, 15, 22, 0, 1, 9, 21, 7, -13, 2, 0, -2, -4, 11, 20, -4, 2, 15, 33, 14, -15, 3, 0, -4, -10, 10, 28, 0, 3
Offset: 1

Views

Author

N. J. A. Sloane, Mar 20 2001

Keywords

Comments

Lengths of rows are 1 1 2 2 2 3 3 3 3 4 4 4 4 4 ... (A003056).

Examples

			Triangle turned on its side begins:
  1  0  2 -1  2  0  2 -2  3  0  2 ...
        1  0  1  2  1  1  1  6 -1 ...
              1  0  1  0  5 -1  5 ...
		

Crossrefs

Programs

  • Mathematica
    max = 27(*rows*); t[n_, k_] := Module[{m, mm, q, s}, mm = Array[m, k]; s = Sum[q^Total[mm]/Times @@ (1+q^mm), Evaluate[Sequence @@ Transpose[{mm, Join[{1}, Most[mm]+1], max-Range[k-1, 0, -1]}]]]; SeriesCoefficient[s, {q, 0, n}]]; Table[Print[an = Table[t[n, k], {k, Floor[(Sqrt[8*n+1]-1)/2], 1, -1}]]; an, {n, 1, max}] // Flatten (* Jean-François Alcover, Jan 21 2014 *)

Formula

G.f. for k-th diagonal (the k-th row of the sideways triangle shown in the example): Sum_{ m_1 < m_2 < ... < m_k} q^(m_1+m_2+...+m_k)/((1+q^m_1)*(1+q^m_2)*...*(1+q^m_k)) = Sum_n T(n, k)*q^n.

Extensions

More terms from Vladeta Jovovic, Sep 20 2007

A365666 Expansion of Sum_{0

Original entry on oeis.org

1, 2, 4, 8, 14, 24, 40, 64, 100, 144, 212, 304, 424, 588, 800, 1072, 1422, 1864, 2408, 3080, 3950, 4972, 6224, 7760, 9564, 11742, 14344, 17384, 20968, 25204, 30112, 35840, 42548, 50078, 58888, 69048, 80474, 93628, 108608, 125408, 144536, 166224, 190348
Offset: 16

Views

Author

Seiichi Manyama, Sep 15 2023

Keywords

Crossrefs

A diagonal of A060047.
Cf. A015128.

Programs

  • Mathematica
    nmax = 60; Drop[CoefficientList[Series[1/4 * Sum[(-1)^k*k*Binomial[k + 3, 7]*x^(k^2), {k, 4, nmax}]/(1 + 2*Sum[(-x)^(k^2), {k, 1, nmax}]), {x, 0, nmax}], x], 16] (* Vaclav Kotesovec, Jul 30 2025 *)

Formula

G.f.: (1/4) * ( Sum_{k>=4} (-1)^k * k * binomial(k+3,7) * q^(k^2) ) / ( 1 + 2 * Sum_{k>=1} (-q)^(k^2) ).

A365667 Expansion of Sum_{0

Original entry on oeis.org

1, 2, 4, 8, 14, 24, 40, 64, 100, 154, 232, 332, 480, 680, 944, 1304, 1774, 2384, 3180, 4200, 5488, 7120, 9160, 11680, 14869, 18740, 23468, 29280, 36278, 44720, 54904, 67040, 81464, 98658, 118936, 142792, 170902, 203760, 242120, 286624, 338366, 398160, 467148
Offset: 25

Views

Author

Seiichi Manyama, Sep 15 2023

Keywords

Crossrefs

A diagonal of A060047.
Cf. A015128.

Programs

  • Mathematica
    nmax = 80; Drop[CoefficientList[Series[-1/5 * Sum[(-1)^k*k*Binomial[k + 4, 9]*x^(k^2), {k, 5, nmax}]/(1 + 2*Sum[(-x)^(k^2), {k, 1, nmax}]), {x, 0, nmax}], x], 25] (* Vaclav Kotesovec, Jul 30 2025 *)

Formula

G.f.: -(1/5) * ( Sum_{k>=5} (-1)^k * k * binomial(k+4,9) * q^(k^2) ) / ( 1 + 2 * Sum_{k>=1} (-q)^(k^2) ).
Showing 1-7 of 7 results.