The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A245841 Triangle T read by rows: T(n,k) = Total number of odd parts in all partitions of n with at most k parts, 1 <= k <= n. 4
1, 0, 2, 1, 2, 5, 0, 2, 4, 8, 1, 3, 7, 10, 15, 0, 4, 8, 14, 18, 24, 1, 4, 12, 19, 27, 32, 39, 0, 4, 12, 24, 34, 44, 50, 58, 1, 5, 18, 32, 49, 62, 74, 81, 90, 0, 6, 18, 40, 60, 82, 98, 112, 120, 130, 1, 6, 24, 49, 81, 108, 135, 154, 170, 179, 190 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
Triangle begins:
1
0 2
1 2 5
0 2 4 8
1 3 7 10 15
0 4 8 14 18 24
1 4 12 19 27 32 39
0 4 12 24 34 44 50 58
1 5 18 32 49 62 74 81 90
0 6 18 40 60 82 98 112 120 130
1 6 24 49 81 108 135 154 170 179 190
MAPLE
b:= proc(n, i, k) option remember; `if`(n=0, [`if`(k=0, 1, 0), 0],
`if`(i<1 or k=0, [0$2], ((f, g)-> f+g+[0, `if`(irem(i, 2)=1,
g[1], 0)])(b(n, i-1, k), `if`(i>n, [0$2], b(n-i, i, k-1)))))
end:
T:= proc(n, k) T(n, k):= b(n$2, k)[2]+`if`(k=1, 0, T(n, k-1)) end:
seq(seq(T(n, k), k=1..n), n=1..14); # Alois P. Heinz, Aug 04 2014
MATHEMATICA
Grid[Table[Sum[Sum[Count[Flatten[IntegerPartitions[n, {j}]], i], {i, 1, n, 2}], {j, k}], {n, 11}, {k, n}]]
(* second program: *)
b[n_, i_, k_] := b[n, i, k] = If[n == 0, {If[k == 0, 1, 0], 0}, If[i < 1 || k == 0, {0, 0}, Function[{f, g}, f + g + {0, If[Mod[i, 2] == 1, g[[1]], 0]}][b[n, i - 1, k], If[i > n, {0, 0}, b[n - i, i, k - 1]]]]];
T[n_, k_] := b[n, n, k][[2]];
Table[Table[T[n, k], {k, 1, n}] // Accumulate, {n, 1, 14}] // Flatten (* Jean-François Alcover, Jul 21 2016, after Alois P. Heinz *)
CROSSREFS
Partial sums of row entries of A245840.
Cf. A066897 (outer diagonal).
Sequence in context: A032259 A109851 A371136 * A011404 A002211 A308947
KEYWORD
nonn,tabl
AUTHOR
L. Edson Jeffery, Aug 03 2014
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 May 15 14:34 EDT 2024. Contains 372540 sequences. (Running on oeis4.)