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.

A046776 Number of partitions of 5n with equal number of parts congruent to each of 0, 1, 2, 3 and 4 (mod 5).

Original entry on oeis.org

1, 0, 0, 1, 5, 15, 36, 75, 146, 271, 495, 891, 1601, 2851, 5051, 8851, 15362, 26331, 44642, 74787, 123991, 203433, 330717, 532872, 851779, 1351147, 2128324, 3330059, 5177768, 8002170, 12296754, 18791945, 28566751, 43204575, 65022987, 97395386, 145217908
Offset: 0

Views

Author

Keywords

Comments

Number of partitions of m with equal numbers of parts congruent to each of 1, 2, 3 and 4 (mod 5) is 0 unless m == 0 mod 5.

Crossrefs

Programs

  • Maple
    mkl:= proc(i,l) local ll, mn, ii, x; ii:= irem(i,5); ii:= `if`(ii=0, 5, ii); ll:= applyop(x->x+1, ii, l); mn:= min(l[]); `if`(mn=0, ll, map (x->x-mn, ll)) end:
    g:= proc(n,i,t) local m, mx, j; if n<0 then 0 elif n=0 then `if`(nops ({t[]})=1, 1, 0) elif i=0 then 0 elif i<6 then mx:= max (t[]); m:= n-15*mx +add(t[j]*j, j=1..5); g(n,i,t):= `if`(m>=0 and irem(m, 15)=0, 1, 0) else g(n,i,t):= g(n, i-1, t) + g(n-i, i, mkl(i, t)) fi end:
    a:= n-> g(5*n, 5*n, [0$5]):
    seq(a(n), n=0..20);  # Alois P. Heinz, Jul 04 2009
  • Mathematica
    $RecursionLimit = 1000; mkl[i_, l_List] := Module[{ ll, mn, ii, x}, ii = Mod[i, 5]; ii = If[ii == 0, 5, ii]; ll = MapAt[#+1&, l, ii]; mn = Min[l]; If[mn == 0, ll, Map [#-mn&, ll]]]; g[n_, i_, t_List] := g[n, i, t] = Module[{ m, mx, j}, Which[n<0, 0 , n == 0, If[Length[t // Union] == 1, 1, 0], i==0, 0, i<6, mx = Max[t]; m = n-15*mx + Sum[t[[j]]*j, {j, 1, 5}]; If[m >= 0 && Mod[m, 15] == 0, 1, 0], True, g[n, i-1, t] + g[n-i, i, mkl[i, t]]]]; a[n_] := g[5*n, 5*n, {0, 0, 0, 0, 0}]; Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Jul 21 2015, after Alois P. Heinz *)
  • PARI
    seq(n)={Vec(sum(k=0, n\3, x^(3*k)/prod(j=1, k, 1 - x^j + O(x*x^n))^5) + O(x*x^n))} \\ Andrew Howroyd, Sep 16 2019

Formula

a(n) = A202085(n) - A202086(n).
a(n) = A036884(n) - A036886(n).
a(n) = A036889(n) - A036892(n).
a(n) = A202087(n) - A202088(n).
G.f.: Sum_{k>=0} x^(3*k)/(Product_{j=1..k} 1 - x^j)^5. - Andrew Howroyd, Sep 16 2019

Extensions

a(18)-a(35) from Alois P. Heinz, Jul 04 2009
Edited by Max Alekseyev, Dec 11 2011
a(36) from Alois P. Heinz, Feb 03 2013

A036889 Number of partitions of 5n such that cn(1,5) = cn(4,5) <= cn(0,5) = cn(2,5) = cn(3,5).

Original entry on oeis.org

0, 1, 4, 12, 29, 66, 137, 279, 546, 1057, 2000, 3746, 6886, 12508, 22360, 39477, 68736, 118309, 201207, 338672, 564211, 931342, 1523628, 2472228, 3979651, 6359094, 10088975, 15899507, 24894711, 38740189, 59929503, 92185390, 141029958, 214628608
Offset: 1

Views

Author

Keywords

Comments

Alternatively, number of partitions of 5n such that cn(2,5) = cn(3,5) <= cn(0,5) = cn(1,5) = cn(4,5).
For a given partition, cn(i,n) means the number of its parts equal to i modulo n.

Formula

a(n) = A036882(n) - A036887(n)
a(n) = A036881(n) - A036885(n)
a(n) = A046776(n) + A036892(n)

Extensions

Terms a(10) onward from Max Alekseyev, Dec 11 2011

A036890 Number of partitions of 5n such that cn(1,5) = cn(4,5) < cn(0,5) <= cn(2,5) = cn(3,5).

Original entry on oeis.org

0, 1, 4, 11, 27, 63, 142, 312, 665, 1382, 2795, 5524, 10674, 20228, 37634, 68886, 124179, 220779, 387458, 671883, 1152027, 1954614, 3283494, 5464437, 9013558, 14743397, 23923577, 38526121, 61593796, 97795238, 154251217, 241765892, 376643803, 583370176
Offset: 1

Views

Author

Keywords

Comments

Alternatively, number of partitions of 5n such that cn(2,5) = cn(3,5) < cn(0,5) <= cn(1,5) = cn(4,5).
For a given partition, cn(i,n) means the number of its parts equal to i modulo n.

Programs

  • Maple
    mkl:= proc(i,l) local ll, mn, x; ll:= applyop(x->x+1, irem (i,5)+1, l); mn:= min(ll[]); `if`(mn=0, ll, map(x->x-mn, ll)) end:
    g:= proc (n,i,t) if n<0 then 0 elif n=0 then `if`(t[2]=t[5] and t[3]=t[4] and t[5]t[4], 0, g(n-2*(t[4]-t[3]), 1, [t[1], t[2], t[4], t[4], t[5]])) else g(n,i,t):= g(n, i-1, t) + g(n-i, i, mkl(i,t)) fi end:
    a:= n-> g(5*n, 5*n, [0,0,0,0,0]):
    seq(a(n), n=1..15);  # Alois P. Heinz, Jul 02 2009
  • Mathematica
    mkl[i_, l_List] := Module[{ll, mn, x}, ll = MapAt[#+1&, l, Mod[i, 5]+1]; mn = Min[ll]; If[mn == 0, ll, ll-mn]]; g[n_, i_, t_List] := g[n, i, t] = Which[n<0, 0, n == 0, If[t[[2]] == t[[5]] && t[[3]] == t[[4]] && t[[5]] < t[[1]] && t[[1]] <= t[[3]], 1, 0], True, Which[i == 0, 0, i == 1, g[0, 0, {t[[1]], t[[2]]+n, t[[3]], t[[4]], t[[5]]}], i == 2, If[t[[3]] > t[[4]], 0, g[n-2*(t[[4]] - t[[3]]), 1, t[[{1, 2, 4, 4, 5}]]]], True, g[n, i, t] = g [n, i-1, t] + g[n-i, i, mkl[i, t]]]]; a[n_] := a[n] = g[5*n, 5*n, {0, 0, 0, 0, 0}]; Table[Print["a(", n, ") = ", a[n]]; a[n], {n, 1, 32}] (* Jean-François Alcover, Dec 23 2015, after Alois P. Heinz *)

Formula

a(n) = A036892(n) + A036894(n).
a(n) = A036881(n) - A036884(n).

Extensions

a(10)-a(32) from Alois P. Heinz, Jul 02 2009
a(33)-a(34) from Max Alekseyev, Dec 11 2011

A036895 Number of partitions of 5n such that cn(1,5) = cn(4,5) < cn(2,5) = cn(3,5) < cn(0,5).

Original entry on oeis.org

0, 0, 1, 4, 12, 29, 67, 146, 313, 654, 1342, 2691, 5291, 10184, 19237, 35680, 65102, 116967, 207241, 362423, 626265, 1070100, 1809513, 3029902, 5026778, 8267109, 13484325, 21821771, 35051459, 55901678, 88550088, 139355911, 217949589, 338837468
Offset: 1

Views

Author

Keywords

Comments

Alternatively, number of partitions of 5n such that cn(2,5) = cn(3,5) < cn(1,5) = cn(4,5) < cn(0,5).
For a given partition, cn(i,n) means the number of its parts equal to i modulo n.

Formula

a(n) = A036891(n) - A036892(n)
a(n) = A036887(n) - A202086(n)

Extensions

Terms a(10) onward from Max Alekseyev, Dec 11 2011

A036891 Number of partitions of 5n such that cn(1,5) = cn(4,5) < cn(2,5) = cn(3,5) <= cn(0,5).

Original entry on oeis.org

0, 1, 4, 11, 26, 59, 129, 279, 588, 1216, 2451, 4836, 9326, 17641, 32746, 59795, 107507, 190634, 333661, 577104, 987043, 1670725, 2800269, 4650351, 7655282, 12497879, 20243241, 32543510, 51944000, 82345113, 129687646, 202974550, 315774972
Offset: 1

Views

Author

Keywords

Comments

Alternatively, number of partitions of 5n such that cn(2,5) = cn(3,5) < cn(1,5) = cn(4,5) <= cn(0,5).
For a given partition, cn(i,n) means the number of its parts equal to i modulo n.

Formula

a(n) = A036892(n) + A036895(n)
a(n) = A036882(n) - A202085(n)

Extensions

Terms a(10) onward from Max Alekseyev, Dec 10 2011

A036894 Number of partitions of 5n such that cn(1,5) = cn(4,5) < cn(0,5) < cn(2,5) = cn(3,5).

Original entry on oeis.org

0, 0, 1, 4, 13, 33, 80, 179, 390, 820, 1686, 3379, 6639, 12771, 24125, 44771, 81774, 147112, 261038, 457202, 791249, 1353989, 2292738, 3843988, 6385054, 10512627, 17164661, 27804382, 44701255, 71351803, 113113659, 178147253, 278818420, 433764555
Offset: 1

Views

Author

Keywords

Comments

Alternatively, number of partitions of 5n such that cn(2,5) = cn(3,5) < cn(0,5) < cn(1,5) = cn(4,5).
For a given partition, cn(i,n) means the number of its parts equal to i modulo n.

Formula

a(n) = A036890(n) - A036892(n)
a(n) = A036885(n) - A036886(n)

Extensions

Terms a(10) onward from Max Alekseyev, Dec 11 2011

A202091 Number of partitions of 5n such that cn(1,5) = cn(4,5) and cn(2,5) = cn(3,5).

Original entry on oeis.org

1, 3, 11, 32, 88, 221, 532, 1213, 2672, 5676, 11724, 23568, 46315, 89076, 168124, 311763, 569000, 1023128, 1814776, 3178000, 5499588, 9411392, 15938221, 26726372, 44402336, 73121988, 119418609, 193488816, 311150404, 496783420, 787753316
Offset: 0

Views

Author

Max Alekseyev, Dec 11 2011

Keywords

Comments

For a given partition, cn(i,n) means the number of its parts equal to i modulo n.

Crossrefs

Formula

a(n) = A046776(n) + A202086(n) + A202088(n) + 2*( A036886(n) + A036892(n) + A036893(n) + A036894(n) + A036895(n) )
a(n) = A202192(n) + 2*( A036886(n) + A036892(n) + A036893(n) + A036894(n) + A036895(n) )
Showing 1-7 of 7 results.