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-3 of 3 results.

A001156 Number of partitions of n into squares.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 5, 6, 6, 6, 8, 9, 10, 10, 12, 13, 14, 14, 16, 19, 20, 21, 23, 26, 27, 28, 31, 34, 37, 38, 43, 46, 49, 50, 55, 60, 63, 66, 71, 78, 81, 84, 90, 98, 104, 107, 116, 124, 132, 135, 144, 154, 163, 169, 178, 192, 201, 209, 220, 235, 247, 256
Offset: 0

Views

Author

Keywords

Comments

Number of partitions of n such that number of parts equal to k is multiple of k for all k. - Vladeta Jovovic, Aug 01 2004
Of course p_{4*square}(n)>0. In fact p_{4*square}(32n+28)=3 times p_{4*square}(8n+7) and p_{4*square}(72n+69) is even. These seem to be the only arithmetic properties the function p_{4*square(n)} possesses. Similar results hold for partitions into positive squares, distinct squares and distinct positive squares. - Michael David Hirschhorn, May 05 2005
The Heinz numbers of these partitions are given by A324588. - Gus Wiseman, Mar 09 2019

Examples

			p_{4*square}(23)=1 because 23 = 3^2 + 3^2 + 2^2 + 1^2 and there is no other partition of 23 into squares.
G.f.: A(x) = 1 + x + x^2 + x^3 + 2*x^4 + 2*x^5 + 2*x^6 + 2*x^7 +...
such that the g.f. A(x) satisfies the identity [_Paul D. Hanna_]:
A(x) = 1/((1-x)*(1-x^4)*(1-x^9)*(1-x^16)*(1-x^25)*...)
A(x) = 1 + x/(1-x) + x^4/((1-x)*(1-x^4)) + x^9/((1-x)*(1-x^4)*(1-x^9)) + x^16/((1-x)*(1-x^4)*(1-x^9)*(1-x^16)) + ...
From _Gus Wiseman_, Mar 09 2019: (Start)
The a(14) = 6 integer partitions into squares are:
  (941)
  (911111)
  (44411)
  (44111111)
  (41111111111)
  (11111111111111)
while the a(14) = 6 integer partitions in which the multiplicity of k is a multiple of k for all k are:
  (333221)
  (33311111)
  (22222211)
  (2222111111)
  (221111111111)
  (11111111111111)
(End)
		

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

Cf. A000041, A000161 (partitions into 2 squares), A000290, A033461, A131799, A218494, A285218, A304046.
Cf. A078134 (first differences).
Row sums of A243148.
Euler trans. of A010052 (see also A308297).

Programs

  • Haskell
    a001156 = p (tail a000290_list) where
       p _          0 = 1
       p ks'@(k:ks) m = if m < k then 0 else p ks' (m - k) + p ks m
    -- Reinhard Zumkeller, Oct 31 2012, Aug 14 2011
    
  • Magma
    m:=70; R:=PowerSeriesRing(Integers(), m); Coefficients(R!( (&*[1/(1-x^(k^2)): k in [1..(m+2)]]) )); // G. C. Greubel, Nov 11 2018
  • Maple
    b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
          b(n, i-1)+ `if`(i^2>n, 0, b(n-i^2, i))))
        end:
    a:= n-> b(n, isqrt(n)):
    seq(a(n), n=0..120);  # Alois P. Heinz, May 30 2014
  • Mathematica
    CoefficientList[ Series[Product[1/(1 - x^(m^2)), {m, 70}], {x, 0, 68}], x] (* Or *)
    Join[{1}, Table[Length@PowersRepresentations[n, n, 2], {n, 68}]] (* Robert G. Wilson v, Apr 12 2005, revised Sep 27 2011 *)
    f[n_] := Length@ IntegerPartitions[n, All, Range@ Sqrt@ n^2]; Array[f, 67] (* Robert G. Wilson v, Apr 14 2013 *)
    b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, b[n, i-1] + If[i^2>n, 0, b[n-i^2, i]]]]; a[n_] := b[n, Sqrt[n]//Floor]; Table[a[n], {n, 0, 120}] (* Jean-François Alcover, Nov 02 2015, after Alois P. Heinz *)
  • PARI
    {a(n)=polcoeff(1/prod(k=1, sqrtint(n+1), 1-x^(k^2)+x*O(x^n)), n)} \\ Paul D. Hanna, Mar 09 2012
    
  • PARI
    {a(n)=polcoeff(1+sum(m=1, sqrtint(n+1), x^(m^2)/prod(k=1, m, 1-x^(k^2)+x*O(x^n))), n)} \\ Paul D. Hanna, Mar 09 2012
    

Formula

G.f.: Product_{m>=1} 1/(1-x^(m^2)).
G.f.: Sum_{n>=0} x^(n^2) / Product_{k=1..n} (1 - x^(k^2)). - Paul D. Hanna, Mar 09 2012
a(n) = (1/n)*Sum_{k=1..n} A035316(k)*a(n-k). - Vladeta Jovovic, Nov 20 2002
a(n) = f(n,1,3) with f(x,y,z) = if xReinhard Zumkeller, Nov 08 2009
Conjecture (Jan Bohman, Carl-Erik Fröberg, Hans Riesel, 1979): a(n) ~ c * n^(-alfa) * exp(beta*n^(1/3)), where c = 1/18.79656, beta = 3.30716, alfa = 1.16022. - Vaclav Kotesovec, Aug 19 2015
From Vaclav Kotesovec, Dec 29 2016: (Start)
Correct values of these constants are:
1/c = sqrt(3) * (4*Pi)^(7/6) / Zeta(3/2)^(2/3) = 17.49638865935104978665...
alfa = 7/6 = 1.16666666666666666...
beta = 3/2 * (Pi/2)^(1/3) * Zeta(3/2)^(2/3) = 3.307411783596651987...
a(n) ~ 3^(-1/2) * (4*Pi*n)^(-7/6) * Zeta(3/2)^(2/3) * exp(2^(-4/3) * 3 * Pi^(1/3) * Zeta(3/2)^(2/3) * n^(1/3)). [Hardy & Ramanujan, 1917]
(End)

Extensions

More terms from Eric W. Weisstein
More terms from Gh. Niculescu (ghniculescu(AT)yahoo.com), Oct 08 2006

A294530 Binomial transform of A023871.

Original entry on oeis.org

1, 2, 8, 33, 131, 497, 1834, 6635, 23622, 82942, 287656, 986552, 3349165, 11263951, 37558235, 124240204, 407951848, 1330340478, 4310385956, 13881618570, 44451643311, 141578435571, 448634389388, 1414774796929, 4441038400458, 13879652908322, 43197263002063
Offset: 0

Views

Author

Vaclav Kotesovec, Nov 02 2017

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 40; s = CoefficientList[Series[Product[1/(1 - x^k)^(k^2), {k, 1, nmax}], {x, 0, nmax}], x]; Table[Sum[Binomial[n, k] * s[[k+1]], {k, 0, n}], {n, 0, nmax}]

Formula

a(n) = Sum_{k=0..n} binomial(n,k) * A023871(k).
a(n) ~ exp(2^(5/4) * 3^(-5/4) * 5^(-1/4) * Pi * n^(3/4) + Pi^2 * sqrt(n) / (4*sqrt(30)) - Pi^3 * n^(1/4) / (32 * 2^(1/4) * 15^(3/4)) + Pi^4/3840 - Zeta(3)/(4*Pi^2)) * 2^(n - 7/8) / (15^(1/8) * n^(5/8)).
G.f.: (1/(1 - x))*exp(Sum_{k>=1} sigma_3(k)*x^k/(k*(1 - x)^k)). - Ilya Gutkovskiy, Aug 20 2018

A306082 Expansion of e.g.f. Product_{k>=1} 1/(1 - (exp(x) - 1)^(k^2)).

Original entry on oeis.org

1, 1, 3, 13, 99, 901, 8763, 92653, 1125939, 16333141, 274594923, 5041348093, 97841114979, 2007694705381, 44043941312283, 1036207737976333, 25969433606691219, 688418684249653621, 19275116061819888843, 571069469474068377373, 17898523203378840958659
Offset: 0

Views

Author

Vaclav Kotesovec, Jun 20 2018

Keywords

Comments

Conjecture: for positive integer k, reducing the sequence modulo k produces an eventually periodic sequence with period dividing phi(k) = A000010(k). For example, modulo 7 we obtain the sequence [1, 1, 3, 6, 1, 5, 6, 1, 3, 6, 1, 5, 6, 1, 3, 6, 1, 5, 6, ...], with an apparent period of 6 beginning at a(1). - Peter Bala, Feb 22 2025

Crossrefs

Programs

  • Maple
    a:=series(mul(1/(1-(exp(x)-1)^(k^2)),k=1..100),x=0,21): seq(n!*coeff(a, x, n), n=0..20); # Paolo P. Lava, Mar 26 2019
  • Mathematica
    nmax = 20; CoefficientList[Series[Product[1/(1 - (Exp[x] - 1)^(k^2)), {k, 1, nmax}], {x, 0, nmax}], x] * Range[0, nmax]!

Formula

a(n) = Sum_{k=0..n} Stirling2(n,k) * A001156(k) * k!.
a(n) ~ n! * exp(3 * 2^(-5/3) * Zeta(3/2)^(2/3) * (Pi*n/log(2))^(1/3)) * Zeta(3/2)^(2/3) / (2^(13/6) * sqrt(3) * Pi^(7/6) * n^(7/6) * (log(2))^(n - 1/6)).
Showing 1-3 of 3 results.