login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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