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, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56, 67
3, 5, 16, 12, 46, 23, 92, 38, 154, 57, 232, 80
6, 21, 13, 67, 106, 31, 211, 277, 58, 436, 529, 94
10, 14, 78, 25, 191, 80, 379, 59, 631, 212, 947, 109
15, 55, 120, 210, 41, 436, 596, 781, 991, 96, 1486, 1771
21, 27, 34, 90, 465, 61, 862, 302, 193, 467, 2146, 142
28, 105, 231, 406, 630, 903, 85, 1541, 1954, 2416, 2927, 3487
36, 44, 300, 63, 820, 324, 1596, 113, 2557, 822, 3829, 355
45, 171, 64, 666, 1035, 208, 2016, 2628, 145, 4006, 4852, 706
55, 65, 465, 230, 101, 495, 2485, 860, 4095, 181, 5996, 1832
66, 253, 561, 990, 1540, 2211, 3003, 3916, 4950, 6105, 221, 8647
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