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.

A325200 Regular triangle read by rows where T(n,k) is the number of integer partitions of n such that the difference between the length of the minimal triangular partition containing and the maximal triangular partition contained in the Young diagram is k.

Original entry on oeis.org

1, 1, 0, 0, 2, 0, 1, 0, 2, 0, 0, 3, 0, 2, 0, 0, 3, 2, 0, 2, 0, 1, 0, 6, 2, 0, 2, 0, 0, 4, 3, 4, 2, 0, 2, 0, 0, 6, 2, 6, 4, 2, 0, 2, 0, 0, 4, 9, 5, 4, 4, 2, 0, 2, 0, 1, 0, 15, 6, 8, 4, 4, 2, 0, 2, 0, 0, 5, 12, 12, 9, 6, 4, 4, 2, 0, 2, 0, 0, 10, 6, 21, 10, 12, 6, 4, 4, 2, 0, 2, 0
Offset: 0

Views

Author

Gus Wiseman, Apr 11 2019

Keywords

Examples

			Triangle begins:
  1
  1  0
  0  2  0
  1  0  2  0
  0  3  0  2  0
  0  3  2  0  2  0
  1  0  6  2  0  2  0
  0  4  3  4  2  0  2  0
  0  6  2  6  4  2  0  2  0
  0  4  9  5  4  4  2  0  2  0
  1  0 15  6  8  4  4  2  0  2  0
  0  5 12 12  9  6  4  4  2  0  2  0
  0 10  6 21 10 12  6  4  4  2  0  2  0
  0 10 12 20 18 13 10  6  4  4  2  0  2  0
  0  5 27 20 23 16 16 10  6  4  4  2  0  2  0
  1  0 38 22 32 22 19 14 10  6  4  4  2  0  2  0
  0  6 34 38 34 35 20 22 14 10  6  4  4  2  0  2  0
  0 15 22 57 44 40 34 23 20 14 10  6  4  4  2  0  2  0
  0 20 20 71 55 54 45 32 26 20 14 10  6  4  4  2  0  2  0
  0 15 43 70 71 66 60 44 35 24 20 14 10  6  4  4  2  0  2  0
  0  6 74 64 99 83 70 65 42 38 24 20 14 10  6  4  4  2  0  2  0
Row n = 9 counts the following partitions (empty columns not shown):
  (432)   (333)    (54)      (63)      (72)       (81)        (9)
  (3321)  (441)    (621)     (6111)    (711)      (21111111)  (111111111)
  (4221)  (522)    (22221)   (222111)  (2211111)
  (4311)  (531)    (51111)   (411111)  (3111111)
          (3222)   (321111)
          (5211)
          (32211)
          (33111)
          (42111)
		

Crossrefs

Row sums are A000041. Column k = 1 is A325191. Column k = 2 is A325199.
T(n,k) = A325189(n,k) - A325188(n,k).

Programs

  • Mathematica
    otb[ptn_]:=Min@@MapIndexed[#1+#2[[1]]-1&,Append[ptn,0]];
    otbmax[ptn_]:=Max@@MapIndexed[#1+#2[[1]]-1&,Append[ptn,0]];
    Table[Length[Select[IntegerPartitions[n],otbmax[#]-otb[#]==k&]],{n,0,20},{k,0,n}]
  • PARI
    row(n)={my(r=vector(n+1)); forpart(p=n, my(b=#p,c=0); for(i=1, #p, my(x=#p-i+p[i]); b=min(b,x); c=max(c,x)); r[c-b+1]++); r} \\ Andrew Howroyd, Jan 12 2024

Formula

Sum_{k=1..n} k*T(n,k) = A366157(n) - A368986(n). - Andrew Howroyd, Jan 13 2024

A325195 Difference between the length of the minimal triangular partition containing and the maximal triangular partition contained in the Young diagram of the integer partition with Heinz number n.

Original entry on oeis.org

0, 0, 1, 1, 2, 0, 3, 2, 1, 1, 4, 1, 5, 2, 1, 3, 6, 1, 7, 1, 2, 3, 8, 2, 2, 4, 2, 2, 9, 0, 10, 4, 3, 5, 2, 2, 11, 6, 4, 2, 12, 1, 13, 3, 1, 7, 14, 3, 3, 1, 5, 4, 15, 2, 3, 2, 6, 8, 16, 1, 17, 9, 1, 5, 4, 2, 18, 5, 7, 1, 19, 3, 20, 10, 1, 6, 3, 3, 21, 3, 3, 11
Offset: 1

Views

Author

Gus Wiseman, Apr 11 2019

Keywords

Comments

The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k).

Examples

			The partition (3,3) has Heinz number 25 and diagram
  o o o
  o o o
containing maximal triangular partition
  o o
  o
and contained in minimal triangular partition
  o o o o
  o o o
  o o
  o
so a(25) = 4 - 2 = 2.
		

Crossrefs

Programs

  • Mathematica
    primeptn[n_]:=If[n==1,{},Reverse[Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]];
    otb[ptn_]:=Min@@MapIndexed[#1+#2[[1]]-1&,Append[ptn,0]];
    otbmax[ptn_]:=Max@@MapIndexed[#1+#2[[1]]-1&,Append[ptn,0]];
    Table[otbmax[primeptn[n]]-otb[primeptn[n]],{n,100}]

A325180 Heinz number of integer partitions such that the difference between the length of the minimal square containing and the maximal square contained in the Young diagram is 2.

Original entry on oeis.org

5, 8, 10, 12, 20, 21, 35, 36, 42, 49, 54, 60, 63, 70, 81, 84, 90, 98, 100, 105, 126, 135, 140, 147, 150, 189, 196, 210, 225, 275, 294, 315, 385, 441, 500, 539, 550, 605, 700, 750, 770, 825, 847, 980, 1050, 1078, 1100, 1125, 1155, 1210, 1250, 1331, 1372, 1375
Offset: 1

Views

Author

Gus Wiseman, Apr 08 2019

Keywords

Comments

The enumeration of these partitions by sum is given by A325182.
The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k).

Examples

			The sequence of terms together with their prime indices begins:
    5: {3}
    8: {1,1,1}
   10: {1,3}
   12: {1,1,2}
   20: {1,1,3}
   21: {2,4}
   35: {3,4}
   36: {1,1,2,2}
   42: {1,2,4}
   49: {4,4}
   54: {1,2,2,2}
   60: {1,1,2,3}
   63: {2,2,4}
   70: {1,3,4}
   81: {2,2,2,2}
   84: {1,1,2,4}
   90: {1,2,2,3}
   98: {1,4,4}
  100: {1,1,3,3}
  105: {2,3,4}
		

Crossrefs

Numbers k such that A263297(k) - A257990(k) = 2.
Positions of 2's in A325178.

Programs

  • Mathematica
    durf[n_]:=Length[Select[Range[PrimeOmega[n]],Reverse[Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]][[#]]>=#&]];
    codurf[n_]:=If[n==1,0,Max[PrimeOmega[n],PrimePi[FactorInteger[n][[-1,1]]]]];
    Select[Range[1000],codurf[#]-durf[#]==2&]

A325182 Number of integer partitions of n such that the difference between the length of the minimal square containing and the maximal square contained in the Young diagram is 2.

Original entry on oeis.org

0, 0, 0, 2, 2, 1, 2, 4, 7, 6, 5, 4, 5, 9, 12, 15, 14, 12, 10, 9, 11, 15, 21, 24, 28, 26, 24, 20, 18, 17, 19, 25, 31, 38, 42, 46, 44, 41, 36, 32, 29, 28, 31, 37, 46, 53, 62, 66, 71, 68, 65, 58, 53, 47, 44, 43, 46, 54, 63, 74, 83, 93, 98, 103, 100, 96, 88, 81
Offset: 0

Views

Author

Gus Wiseman, Apr 08 2019

Keywords

Comments

The maximal square contained in the Young diagram of an integer partition is called its Durfee square, and its length is the rank of the partition.

Examples

			The a(3) = 2 through a(14) = 12 partitions:
  3    31   311  42    43    44    432   442   533    543    544    554
  111  211       2211  421   422   441   3322  4322   4422   553    5333
                       2221  431   3222  4222  4421   5331   5332   5432
                       3211  2222  3321  4321  33311  33321  5431   5441
                             3221  4221  4411         43311  33322  5531
                             3311  4311                      33331  33332
                             4211                            43321  43322
                                                             44311  43331
                                                             53311  44321
                                                                    44411
                                                                    53321
                                                                    54311
		

References

  • Richard P. Stanley, Enumerative Combinatorics, Volume 2, Cambridge University Press, 1999, p. 289.

Crossrefs

Programs

  • Mathematica
    durf[ptn_]:=Length[Select[Range[Length[ptn]],ptn[[#]]>=#&]];
    codurf[ptn_]:=Max[Length[ptn],Max[ptn]];
    Table[Length[Select[IntegerPartitions[n],codurf[#]-durf[#]==2&]],{n,0,30}]

A325198 Positive numbers whose maximum prime index minus minimum prime index is 2.

Original entry on oeis.org

10, 20, 21, 30, 40, 50, 55, 60, 63, 80, 90, 91, 100, 105, 120, 147, 150, 160, 180, 187, 189, 200, 240, 247, 250, 270, 275, 300, 315, 320, 360, 385, 391, 400, 441, 450, 480, 500, 525, 540, 551, 567, 600, 605, 637, 640, 713, 720, 735, 750, 800, 810, 900, 945
Offset: 1

Views

Author

Gus Wiseman, Apr 11 2019

Keywords

Comments

Also Heinz numbers of integer partitions whose maximum minus minimum part is 2 (counted by A008805). The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k).

Examples

			The sequence of terms together with their prime indices begins:
   10: {1,3}
   20: {1,1,3}
   21: {2,4}
   30: {1,2,3}
   40: {1,1,1,3}
   50: {1,3,3}
   55: {3,5}
   60: {1,1,2,3}
   63: {2,2,4}
   80: {1,1,1,1,3}
   90: {1,2,2,3}
   91: {4,6}
  100: {1,1,3,3}
  105: {2,3,4}
  120: {1,1,1,2,3}
  147: {2,4,4}
  150: {1,2,3,3}
  160: {1,1,1,1,1,3}
  180: {1,1,2,2,3}
  187: {5,7}
		

Crossrefs

Programs

  • Maple
    N:= 1000: # for terms <= N
    q:= 2: r:= 3:
    Res:= NULL:
    do
      p:= q; q:= r; r:= nextprime(r);
      if p*r > N then break fi;
      for i from 1 do
        pi:= p^i;
        if pi*r > N then break fi;
        for j from 0 do
          piqj:= pi*q^j;
          if piqj*r > N then break fi;
          Res:= Res, seq(piqj*r^k,k=1 .. floor(log[r](N/piqj)))
        od
      od
    od:
    sort([Res]); # Robert Israel, Apr 12 2019
  • Mathematica
    Select[Range[100],PrimePi[FactorInteger[#][[-1,1]]]-PrimePi[FactorInteger[#][[1,1]]]==2&]

A325199 Number of integer partitions of n such that the difference between the length of the minimal triangular partition containing and the maximal triangular partition contained in the Young diagram is 2.

Original entry on oeis.org

0, 0, 0, 2, 0, 2, 6, 3, 2, 9, 15, 12, 6, 12, 27, 38, 34, 22, 20, 43, 74, 94, 90, 67, 48, 69, 130, 194, 232, 230, 187, 132, 129, 218, 364, 497, 576, 578, 498, 367, 290, 378, 642, 977, 1264, 1435, 1448, 1290, 1000, 735, 728
Offset: 0

Views

Author

Gus Wiseman, Apr 11 2019

Keywords

Comments

The Heinz numbers of these partitions are given by A325197.

Examples

			The a(3) = 2 through a(10) = 15 partitions (empty columns not shown):
  (3)    (41)    (33)    (43)    (521)    (333)    (433)
  (111)  (2111)  (42)    (2221)  (32111)  (441)    (442)
                 (222)   (4111)           (522)    (532)
                 (411)                    (531)    (541)
                 (2211)                   (3222)   (3322)
                 (3111)                   (5211)   (3331)
                                          (32211)  (4222)
                                          (33111)  (4411)
                                          (42111)  (5221)
                                                   (5311)
                                                   (32221)
                                                   (33211)
                                                   (42211)
                                                   (43111)
                                                   (52111)
		

Crossrefs

Programs

  • Mathematica
    otb[ptn_]:=Min@@MapIndexed[#1+#2[[1]]-1&,Append[ptn,0]];
    otbmax[ptn_]:=Max@@MapIndexed[#1+#2[[1]]-1&,Append[ptn,0]];
    Table[Length[Select[IntegerPartitions[n],otbmax[#]-otb[#]==2&]],{n,0,30}]

A325186 Heinz numbers of integer partitions whose Young diagram has last part of its origin-to-boundary partition equal to 2.

Original entry on oeis.org

3, 4, 15, 18, 21, 25, 27, 33, 36, 39, 51, 57, 69, 72, 87, 93, 105, 111, 123, 129, 141, 144, 147, 150, 159, 165, 175, 177, 183, 195, 201, 213, 219, 225, 231, 237, 245, 249, 250, 255, 267, 273, 275, 285, 288, 291, 300, 303, 309, 321, 325, 327, 339, 343, 345, 357
Offset: 1

Views

Author

Gus Wiseman, Apr 08 2019

Keywords

Comments

The k-th part of the origin-to-boundary partition of a Young diagram is the number of squares graph-distance k from the lower-right boundary.
The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k).

Examples

			The sequence of terms together with their prime indices begins:
    3: {2}
    4: {1,1}
   15: {2,3}
   18: {1,2,2}
   21: {2,4}
   25: {3,3}
   27: {2,2,2}
   33: {2,5}
   36: {1,1,2,2}
   39: {2,6}
   51: {2,7}
   57: {2,8}
   69: {2,9}
   72: {1,1,1,2,2}
   87: {2,10}
   93: {2,11}
  105: {2,3,4}
  111: {2,12}
  123: {2,13}
  129: {2,14}
		

Crossrefs

Programs

  • Mathematica
    primeptn[n_]:=If[n==1,{},Reverse[Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]];
    ptnmat[ptn_]:=PadRight[(ConstantArray[1,#]&)/@Sort[ptn,Greater],{Length[ptn],Max@@ptn}+1];
    corpos[mat_]:=ReplacePart[mat,Select[Position[mat,1],Times@@Extract[mat,{#+{1,0},#+{0,1}}]==0&]->0];
    Select[Range[100],Apply[Plus,If[#==1,{},FixedPointList[corpos,ptnmat[primeptn[#]]][[-3]]],{0,1}]==2&]
Showing 1-7 of 7 results.