OFFSET
1,2
COMMENTS
The array is read by descending antidiagonals as A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), etc.
LINKS
MathWorld, Pairing Function
FORMULA
EXAMPLE
The top left 12 X 12 corner of the array:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78
3, 5, 21, 14, 55, 27, 105, 44, 171, 65, 253, 90
6, 21, 13, 78, 120, 34, 231, 300, 64, 465, 561, 103
10, 14, 78, 25, 210, 90, 406, 63, 666, 230, 990, 117
15, 55, 120, 210, 41, 465, 630, 820, 1035, 101, 1540, 1830
21, 27, 34, 90, 465, 61, 903, 324, 208, 495, 2211, 148
28, 105, 231, 406, 630, 903, 85, 1596, 2016, 2485, 3003, 3570
36, 44, 300, 63, 820, 324, 1596, 113, 2628, 860, 3916, 375
45, 171, 64, 666, 1035, 208, 2016, 2628, 145, 4095, 4950, 739
55, 65, 465, 230, 101, 495, 2485, 860, 4095, 181, 6105, 1890
66, 253, 561, 990, 1540, 2211, 3003, 3916, 4950, 6105, 221, 8778
78, 90, 103, 117, 1830, 148, 3570, 375, 739, 1890, 8778, 265
PROG
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Antti Karttunen, May 03 2017
STATUS
approved