OFFSET
1,8
COMMENTS
LINKS
Wouter Meeussen, proofs by Geoffrey Caveney.
FORMULA
T(n,k) = T(n-1,k-1) + 1-[n-k+1|n] with T(n,0)=1.
EXAMPLE
For n=7,
1 : (7)
3 : (6,1) (5,2) (4,3)
3 : (5,1,1) (4,2,1) {(3,3,1),(3,2,2)}
3 : (4,1,1,1) (3,2,1,1) (2,2,2,1)
2 : (3,1,1,1,1) (2,2,1,1,1)
1 : (2,1,1,1,1,1)
1 : (1,1,1,1,1,1,1)
partitions (3,3,1) and (3,2,2) both belong to the set of partitions of n=7 with k=length=3 and largest part 3; so T(7,3)=3, counting (5,1,1), (4,2,1) and ((3,3,1),(3,2,2)).
Table starts as:
1
1, 1
1, 1, 1
1, 2, 1, 1
1, 2, 2, 1, 1
1, 3, 3, 2, 1, 1
1, 3, 3, 3, 2, 1, 1
1, 4, 4, 4, 3, 2, 1, 1
1, 4, 5, 4, 4, 3, 2, 1, 1
1, 5, 5, 5, 5, 4, 3, 2, 1, 1
MATHEMATICA
Table[Length/@Table[Map[Length, GatherBy[IntegerPartitions[n, {k}], First], {1}], {k, n}], {n, 10}];
(* or *) Clear[T]; T[_, 0]:=1; T[n_, k_]:=T[n, k]=T[n-1, k-1]+1-Boole[Divisible[n, n-k+1]]; Table[T[n, n-k], {n, 0, 9}, {k, 0, n}]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Wouter Meeussen, Sep 03 2025
STATUS
approved
