OFFSET
1,2
COMMENTS
REFERENCES
T. A. Gulliver, Sequences from Cubes of Integers, Int. Math. Journal, 4 (2003), 439-445.
EXAMPLE
Triangle begins:
1
6 4
27 21 9
124 100 52 16
645 525 285 105 25
3906 3186 1746 666 186 36
27391 22351 12271 4711 1351 301 49
...
MAPLE
T:= proc(i, j) option remember;
`if`(j<1 or j>i, 0, (T(i-1, j)+i)*i)
end:
seq(seq(T(n, k), k=1..n), n=1..10); # Alois P. Heinz, Jun 22 2022
MATHEMATICA
T[n_, k_] /; 1 <= k <= n := T[n, k] = (T[n-1, k]+n)*n;
T[_, _] = 0;
Table[T[n, k], {n, 1, 10}, {k, 1, n}] // Flatten (* Jean-François Alcover, Nov 17 2022 *)
PROG
(Python)
def T(i, j): return (T(i-1, j)+i)*i if 1 <= j <= i else 0
print([T(r, c) for r in range(1, 11) for c in range(1, r+1)]) # Michael S. Branicky, Jun 22 2022
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Thomas Wieder, Aug 15 2006
EXTENSIONS
Edited by N. J. A. Sloane, Sep 15 2006
Formula in name corrected by Alois P. Heinz, Jun 22 2022
STATUS
approved