A125235 Triangle with the partial column sums of the octagonal numbers.
1, 8, 1, 21, 9, 1, 40, 30, 10, 1, 65, 70, 40, 11, 1, 96, 135, 110, 51, 12, 1, 133, 231, 245, 161, 63, 13, 1, 176, 364, 476, 406, 224, 76, 14, 1, 225, 540, 840, 882, 630, 300, 90, 15, 1, 280, 765, 1380, 1722, 1512, 930, 390, 105, 16, 1
Offset: 1
Examples
First few rows of the triangle: 1; 8, 1; 21, 9, 1; 40, 30, 10, 1; 65, 70, 40, 11, 1; 96, 135, 110, 51, 12, 1; ...
References
- Albert H. Beiler, Recreations in the Theory of Numbers, Dover (1966), p. 189.
Programs
-
PARI
t(n, k) = if (n <0, 0, if (k==1, n*(3*n-2), if (k > 1, t(n-1,k-1) + t(n-1,k)))); tabl(nn) = {for (n = 1, nn, for (k = 1, n, print1(t(n, k), ", ");); print(););} \\ Michel Marcus, Mar 04 2014
Formula
Extensions
More terms from Michel Marcus, Mar 04 2014
Comments