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
2, 5, 16, 12, 46, 23, 92, 38, 154, 57, 232, 80
4, 16, 13, 67, 106, 31, 211, 277, 58, 436, 529, 94
7, 12, 67, 25, 191, 80, 379, 59, 631, 212, 947, 109
11, 46, 106, 191, 41, 436, 596, 781, 991, 96, 1486, 1771
16, 23, 31, 80, 436, 61, 862, 302, 193, 467, 2146, 142
22, 92, 211, 379, 596, 862, 85, 1541, 1954, 2416, 2927, 3487
29, 38, 277, 59, 781, 302, 1541, 113, 2557, 822, 3829, 355
37, 154, 58, 631, 991, 193, 1954, 2557, 145, 4006, 4852, 706
46, 57, 436, 212, 96, 467, 2416, 822, 4006, 181, 5996, 1832
56, 232, 529, 947, 1486, 2146, 2927, 3829, 4852, 5996, 221, 8647
67, 80, 94, 109, 1771, 142, 3487, 355, 706, 1832, 8647, 265
PROG
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Antti Karttunen, May 03 2017
STATUS
approved