OFFSET
1,4
COMMENTS
See A285732.
LINKS
EXAMPLE
The top left 9 X 9 corner of the array:
-1, 1, 3, 6, 10, 15, 21, 28, 36
1, -2, 2, 5, 9, 14, 20, 27, 35
2, 3, -3, 4, 8, 13, 19, 26, 34
4, 5, 6, -4, 7, 12, 18, 25, 33
7, 8, 9, 10, -5, 11, 17, 24, 32
11, 12, 13, 14, 15, -6, 16, 23, 31
16, 17, 18, 19, 20, 21, -7, 22, 30
22, 23, 24, 25, 26, 27, 28, -8, 29
29, 30, 31, 32, 33, 34, 35, 36, -9
PROG
(Scheme) (define (A285733 n) (A285732bi (A004736 n) (A002260 n))) ;; For A285732bi see under A285732.
(Python)
def T(n, m): return ((n + m)**2 - n - 3*m + 2)/2
def A(n, k): return -n if n == k else T(n - k, k) if n>k else T(n, k - n)
for n in range(1, 21): print [A(n - k + 1, k) for k in range(1, n + 1)] # Indranil Ghosh, May 03 2017
CROSSREFS
KEYWORD
sign,tabl
AUTHOR
Antti Karttunen, May 03 2017
STATUS
approved