OFFSET
1,2
COMMENTS
See illustration in links. Column c(k) = (2*k - 1)*n^2. Diagonal d(m) = (2*n - 2*m + 1)*n^2.
LINKS
Kival Ngaokrajang, Illustration of initial terms
EXAMPLE
Triangle begins:
1
4 12
9 27 45
16 48 80 112
25 75 125 175 225
36 108 180 252 324 396
49 147 245 343 441 539 637
PROG
(Small Basic)
For n=1 To 20
For k=1 To n*n+(n-1)*(n-1) Step 2*n
c=0
For i=1 To n
If i=1 Then
a=k
Else
a=a+2
EndIf
c=c+a
EndFor
TextWindow.Write(c+", ")
EndFor
EndFor
(PARI) trg(nn) = {for (n=1, nn, mm = matrix(n, n, i, j, (2*j-1) + (2*n)*(i-1)); for (i=1, n, print1(sum(j=1, n, mm[i, j]), ", "); ); print(); ); } \\ Michel Marcus, Sep 15 2014
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Kival Ngaokrajang, Sep 13 2014
STATUS
approved