A328368 Irregular triangle read by rows: T(n,k) is the total number of parts in all partitions of all positive integers <= n into k consecutive parts.
1, 2, 3, 2, 4, 2, 5, 4, 6, 4, 3, 7, 6, 3, 8, 6, 3, 9, 8, 6, 10, 8, 6, 4, 11, 10, 6, 4, 12, 10, 9, 4, 13, 12, 9, 4, 14, 12, 9, 8, 15, 14, 12, 8, 5, 16, 14, 12, 8, 5, 17, 16, 12, 8, 5, 18, 16, 15, 12, 5, 19, 18, 15, 12, 5, 20, 18, 15, 12, 10, 21, 20, 18, 12, 10, 6, 22, 20, 18, 16, 10, 6, 23, 22, 18, 16, 10, 6
Offset: 1
Examples
Triangle begins: 1; 2; 3, 2; 4, 2; 5, 4; 6, 4, 3; 7, 6, 3; 8, 6, 3; 9, 8, 6; 10, 8, 6, 4; 11, 10, 6, 4; 12, 10, 9, 4; 13, 12, 9, 4; 14, 12, 9, 8; 15, 14, 12, 8, 5; 16, 14, 12, 8, 5; 17, 16, 12, 8, 5; 18, 16, 15, 12, 5; 19, 18, 15, 12, 5; 20, 18, 15, 12, 10; 21, 20, 18, 12, 10, 6; 22, 20, 18, 16, 10, 6; 23, 22, 18, 16, 10, 6; 24, 22, 21, 16, 10, 6; 25, 24, 21, 16, 15, 6; 26, 24, 21, 20, 15, 6; 27, 26, 24, 20, 15, 12; 28, 26, 24, 20, 15, 12, 7; ...
Crossrefs
Programs
-
PARI
tt(n, k) = k*(if (k % 2, (n % k) == 0, ((n - k/2) % k) == 0)); \\ A285891 t(n, k) = sum(j=k*(k+1)/2, n, tt(j, k)); tabf(nn) = {for (n=1, nn, for (k=1, floor((sqrt(1+8*n)-1)/2), print1(t(n, k), ", "); ); print(); ); } \\ Michel Marcus, Nov 04 2019
Comments