[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A362208 Irregular triangle read by rows: T(n, k) is the number of compositions (ordered partitions) of n into exactly k distinct parts between the members of [k^2]. 2
1, 0, 0, 2, 0, 2, 0, 4, 0, 2, 6, 0, 2, 6, 0, 0, 12, 0, 0, 18, 0, 0, 24, 24, 0, 0, 30, 24, 0, 0, 42, 48, 0, 0, 42, 72, 0, 0, 48, 120, 0, 0, 48, 144, 120, 0, 0, 48, 216, 120, 0, 0, 42, 264, 240, 0, 0, 42, 360, 360, 0, 0, 30, 432, 600, 0, 0, 24, 552, 840, 0, 0, 18, 648, 1200, 720 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
EXAMPLE
The irregular triangle begins:
1;
0;
0, 2;
0, 2;
0, 4;
0, 2, 6;
0, 2, 6;
0, 0, 12;
0, 0, 18;
0, 0, 24, 24;
0, 0, 30, 24;
0, 0, 42, 48;
0, 0, 42, 72;
0, 0, 48, 120;
0, 0, 48, 144, 120;
...
T(7,3) = 6 since we have: 1+2+4, 1+4+2, 2+1+4, 2+4+1, 4+1+2, 4+2+1.
MATHEMATICA
Flatten[Table[Length[Select[Join@@Permutations/@Select[IntegerPartitions[n, All, Range[k^2]], UnsameQ@@#&], Length[#]==k&]], {n, 21}, {k, Floor[(Sqrt[8n+1]-1)/2]}]] (* After Gus Wiseman in A072574 *)
CROSSREFS
Cf. A000290, A003056 (row lengths), A072574, A216652.
Cf. A362209, A362221 (unordered partitions).
Sequence in context: A282849 A111813 A346773 * A167156 A132952 A319998
KEYWORD
nonn,tabf
AUTHOR
Stefano Spezia, Apr 11 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 15:03 EDT 2024. Contains 375517 sequences. (Running on oeis4.)