login
A257504
Inverse permutation to A257503.
3
1, 2, 4, 3, 7, 11, 16, 22, 29, 37, 46, 5, 56, 67, 79, 8, 92, 6, 106, 121, 137, 12, 154, 172, 191, 211, 232, 254, 277, 301, 326, 352, 379, 407, 436, 466, 497, 529, 562, 596, 631, 667, 704, 742, 781, 821, 862, 17, 904, 947, 991, 23, 1036, 1082, 1129, 1177, 1226, 1276, 1327, 30, 1379, 1432, 1486, 38, 1541, 47, 1597, 1654, 1712, 57, 1771, 9
OFFSET
1,2
FORMULA
a(n) = (1/2) * ((c+r)^2 - r - 3*c + 2), where c = A257681(n), and r = A257679(n).
PROG
(Scheme) (define (A257504 n) (let ((col (A257681 n)) (row (A257679 n))) (* (/ 1 2) (- (expt (+ row col) 2) row col col col -2))))
CROSSREFS
Inverse: A257503.
Sequence in context: A329877 A223625 A166017 * A207625 A238953 A238964
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 06 2015
STATUS
approved