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

A026820 Euler's table: triangular array T read by rows, where T(n,k) = number of partitions in which every part is <= k for 1 <= k <= n. Also number of partitions of n into at most k parts.

Original entry on oeis.org

1, 1, 2, 1, 2, 3, 1, 3, 4, 5, 1, 3, 5, 6, 7, 1, 4, 7, 9, 10, 11, 1, 4, 8, 11, 13, 14, 15, 1, 5, 10, 15, 18, 20, 21, 22, 1, 5, 12, 18, 23, 26, 28, 29, 30, 1, 6, 14, 23, 30, 35, 38, 40, 41, 42, 1, 6, 16, 27, 37, 44, 49, 52, 54, 55, 56, 1, 7, 19, 34, 47, 58, 65, 70, 73, 75, 76, 77
Offset: 1

Views

Author

Keywords

Examples

			Triangle starts:
  1;
  1, 2;
  1, 2,  3;
  1, 3,  4,  5;
  1, 3,  5,  6,  7;
  1, 4,  7,  9, 10, 11;
  1, 4,  8, 11, 13, 14, 15;
  1, 5, 10, 15, 18, 20, 21, 22;
  1, 5, 12, 18, 23, 26, 28, 29, 30;
  1, 6, 14, 23, 30, 35, 38, 40, 41, 42;
  1, 6, 16, 27, 37, 44, 49, 52, 54, 55, 56;
  ...
		

References

  • G. Chrystal, Algebra, Vol. II, p. 558.
  • D. S. Mitrinovic et al., Handbook of Number Theory, Kluwer, Section XIV.2, p. 493.

Crossrefs

Partial sums of rows of A008284, row sums give A058397, central terms give A171985, mirror is A058400.
T(n,n) = A000041(n), T(n,1) = A000012(n), T(n,2) = A008619(n) for n>1, T(n,3) = A001399(n) for n>2, T(n,4) = A001400(n) for n>3, T(n,5) = A001401(n) for n>4, T(n,6) = A001402(n) for n>5, T(n,7) = A008636(n) for n>6, T(n,8) = A008637(n) for n>7, T(n,9) = A008638(n) for n>8, T(n,10) = A008639(n) for n>9, T(n,11) = A008640(n) for n>10, T(n,12) = A008641(n) for n>11, T(n,n-2) = A007042(n-1) for n>2, T(n,n-1) = A000065(n) for n>1.

Programs

  • Haskell
    import Data.List (inits)
    a026820 n k = a026820_tabl !! (n-1) !! (k-1)
    a026820_row n = a026820_tabl !! (n-1)
    a026820_tabl = zipWith
       (\x -> map (p x) . tail . inits) [1..] $ tail $ inits [1..] where
       p 0 _ = 1
       p _ [] = 0
       p m ks'@(k:ks) = if m < k then 0 else p (m - k) ks' + p m ks
    -- Reinhard Zumkeller, Dec 18 2013
    
  • Maple
    T:= proc(n, k) option remember;
          `if`(n=0 or k=1, 1, T(n, k-1) + `if`(k>n, 0, T(n-k, k)))
        end:
    seq(seq(T(n, k), k=1..n), n=1..12); # Alois P. Heinz, Apr 21 2012
  • Mathematica
    t[n_, k_] := Length@ IntegerPartitions[n, k]; Table[ t[n, k], {n, 12}, {k, n}] // Flatten
    (* Second program: *)
    T[n_, k_] := T[n, k] = If[n==0 || k==1, 1, T[n, k-1] + If[k>n, 0, T[n-k, k]]]; Table[T[n, k], {n, 1, 12}, {k, 1, n}] // Flatten (* Jean-François Alcover, Sep 22 2015, after Alois P. Heinz *)
  • PARI
    T(n,k)=my(s); forpart(v=n,s++,,k); s \\ Charles R Greathouse IV, Feb 27 2018
    
  • SageMath
    from sage.combinat.partition import number_of_partitions_length
    from itertools import accumulate
    for n in (1..11):
        print(list(accumulate([number_of_partitions_length(n, k) for k in (1..n)])))
    # Peter Luschny, Jul 28 2022

Formula

T(T(n,n),n) = A134737(n). - Reinhard Zumkeller, Nov 07 2007
T(A000217(n),n) = A173519(n). - Reinhard Zumkeller, Feb 20 2010
T(n,k) = T(n,k-1) + T(n-k,k). - Thomas Dybdahl Ahle, Jun 13 2011
T(n,k) = Sum_{i=1..min(k,floor(n/2))} T(n-i,i) + Sum_{j=1+floor(n/2)..k} A000041(n-j). - Bob Selcoe, Aug 22 2014 [corrected by Álvar Ibeas, Mar 15 2018]
O.g.f.: Product_{i>=0} 1/(1-y*x^i). - Geoffrey Critzer, Mar 11 2012
T(n,k) = A008284(n+k,k). - Álvar Ibeas, Jan 06 2015

A026815 Number of partitions of n in which the greatest part is 9.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 41, 54, 73, 94, 123, 157, 201, 252, 318, 393, 488, 598, 732, 887, 1076, 1291, 1549, 1845, 2194, 2592, 3060, 3589, 4206, 4904, 5708, 6615, 7657, 8824, 10156, 11648, 13338, 15224, 17354, 19720, 22380
Offset: 0

Views

Author

Keywords

Crossrefs

Essentially same as A008638.
Cf. A008284.

Programs

  • GAP
    List([0..70],n->NrPartitions(n,9)); # Muniru A Asiru, May 17 2018
  • Maple
    part_ZL:=[S,{S=Set(U,card=r),U=Sequence(Z,card>=1)}, unlabeled]: seq(count(subs(r=9,part_ZL),size=m),m=1..50); # Zerinvary Lajos, Mar 09 2007
  • Mathematica
    Table[ Length[ Select[ Partitions[n], First[ # ] == 9 & ]], {n, 1, 60} ]
    CoefficientList[Series[x^9/((1 - x) (1 - x^2) (1 - x^3) (1 - x^4) (1 - x^5) (1 - x^6) (1 - x^7) (1 - x^8) (1 - x^9)), {x, 0, 60}], x] (* Vincenzo Librandi, Oct 18 2013 *)
    Drop[LinearRecurrence[{1, 1, 0, 0, -1, 0, -1, 0, 0, -1, 0, 2, 1, 1, 1, 0, -1, -1, -1, -2, -1, -1, 1, 1, 2, 1, 1, 1, 0, -1, -1, -1, -2, 0, 1, 0, 0, 1, 0, 1, 0, 0, -1, -1, 1}, Append[Table[0,{44}],1],136],35] (* Robert A. Russell, May 17 2018 *)
  • PARI
    x='x+O('x^99); concat(vector(9), Vec(x^9/prod(k=1, 9, 1-x^k))) \\ Altug Alkan, May 17 2018
    

Formula

G.f.: x^9 / ((1-x)*(1-x^2)*(1-x^3)*(1-x^4)*(1-x^5)*(1-x^6)*(1-x^7)*(1-x^8)*(1-x^9)). - Colin Barker, Feb 22 2013
a(n) = A008284(n,9). - Robert A. Russell, May 13 2018

Extensions

a(0)=0 prepended by Seiichi Manyama, Jun 08 2017

A008639 Number of partitions of n into at most 10 parts.

Original entry on oeis.org

1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42, 55, 75, 97, 128, 164, 212, 267, 340, 423, 530, 653, 807, 984, 1204, 1455, 1761, 2112, 2534, 3015, 3590, 4242, 5013, 5888, 6912, 8070, 9418, 10936, 12690, 14663, 16928, 19466, 22367, 25608, 29292, 33401, 38047
Offset: 0

Views

Author

Keywords

Comments

For n > 9: also number of partitions of n into parts <= 10: a(n) = A026820(n, 10). - Reinhard Zumkeller, Jan 21 2010

References

  • A. Cayley, Collected Mathematical Papers. Vols. 1-13, Cambridge Univ. Press, London, 1889-1897, Vol. 10, p. 415.
  • H. Gupta et al., Tables of Partitions. Royal Society Mathematical Tables, Vol. 4, Cambridge Univ. Press, 1958, p. 2.

Crossrefs

Essentially same as A026816.
a(n) = A008284(n + 10, 10), n >= 0.
Cf. A266778 (first differences), A288345 (partial sums).

Programs

  • Mathematica
    CoefficientList[ Series[ 1/ Product[ 1 - x^n, {n, 1, 10} ], {x, 0, 60} ], x ]
  • PARI
    Vec(1/prod(k=1,10,1-x^k)+O(x^99)) \\ Charles R Greathouse IV, May 06 2015

Formula

G.f.: 1/Product_{k=1..10} (1 - x^k). - David Neil McGrath, Apr 29 2015
a(n) = a(n-10) + A008638(n). - Vladimír Modrák, Sep 29 2020

A288344 Expansion of 1 / ((1-x)^2*(1-x^2)*(1-x^3)*...*(1-x^9)).

Original entry on oeis.org

1, 2, 4, 7, 12, 19, 30, 45, 67, 97, 138, 192, 265, 359, 482, 639, 840, 1092, 1410, 1803, 2291, 2889, 3621, 4508, 5584, 6875, 8424, 10269, 12463, 15055, 18115, 21704, 25910, 30814, 36522, 43137, 50794, 59618, 69774, 81422, 94760, 109984, 127338, 147058, 169438
Offset: 0

Views

Author

Seiichi Manyama, Jun 08 2017

Keywords

Comments

Number of partitions of at most n into at most 9 parts.

Crossrefs

Number of partitions of at most n into at most k parts: A002621 (k=4), A002622 (k=5), A288341 (k=6), A288342 (k=7), A288343 (k=8), this sequence (k=9), A288345 (k=10).
Cf. A288256, A008638 (first differences).

Programs

  • PARI
    x='x+O('x^99); Vec(1/((1-x)*prod(i=1, 9, (1-x^i)))) \\ Altug Alkan, Mar 28 2018

A347545 Number of partitions of n into 9 or more parts.

Original entry on oeis.org

1, 2, 4, 7, 12, 19, 30, 45, 67, 97, 138, 193, 267, 364, 491, 656, 868, 1139, 1483, 1917, 2461, 3142, 3985, 5030, 6315, 7893, 9817, 12165, 15007, 18451, 22597, 27589, 33565, 40724, 49249, 59410, 71460, 85753, 102632, 122574, 146032, 173638, 206003, 243951, 288296, 340124
Offset: 9

Views

Author

Ilya Gutkovskiy, Sep 06 2021

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 54; CoefficientList[Series[Sum[x^k/Product[(1 - x^j), {j, 1, k}], {k, 9, nmax}], {x, 0, nmax}], x] // Drop[#, 9] &

Formula

G.f.: Sum_{k>=9} x^k / Product_{j=1..k} (1 - x^j).
Showing 1-5 of 5 results.