OFFSET
1,2
LINKS
Vincenzo Librandi, Rows n = 1..100, flattened
FORMULA
T(i,j) = (i-j+1)(3i-3j+2)/2 for 1 <= j <= i. - Emeric Deutsch, Mar 23 2005
EXAMPLE
The first few rows are:
1;
5, 1;
12, 5, 1;
22, 12, 5, 1;
35, 22, 12, 5, 1;
...
MAPLE
T:=proc(i, j) if j<=i then (i-j+1)*(3*i-3*j+2)/2 else 0 fi end: for i from 1 to 13 do seq(T(i, j), j=1..i) od; # yields sequence in triangular form # Emeric Deutsch, Mar 23 2005
MATHEMATICA
t[n_, k_]:=(n - k + 1) (3 n - 3 k + 2)/2; Table[t[n, k], {n, 11}, {k, n}]//Flatten (* Vincenzo Librandi, Aug 18 2017 *)
PROG
(Magma) /* As triangle */ [[(i-j+1)*(3*i-3*j+2)/2: j in [1..i]]: i in [1.. 7]]; // Vincenzo Librandi, Aug 18 2017
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Gary W. Adamson, Mar 16 2005
EXTENSIONS
More terms from Emeric Deutsch, Mar 23 2005
STATUS
approved