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”).

A255558
Inverse permutation to A255557.
4
1, 2, 3, 5, 4, 7, 6, 9, 11, 8, 12, 16, 22, 29, 10, 14, 37, 17, 13, 46, 56, 18, 23, 67, 30, 38, 79, 92, 106, 121, 15, 20, 137, 47, 24, 154, 172, 19, 57, 191, 68, 25, 211, 232, 254, 31, 80, 277, 39, 48, 301, 326, 93, 107, 352, 122, 138, 379, 407, 436, 466, 497, 21, 27, 529, 155, 58, 562, 596, 32, 173, 631, 192, 26
OFFSET
1,2
FORMULA
a(n) = (1/2) * ((c+r)^2 - r - 3*c + 2), where r = A255559(n), and c = A255560(n).
PROG
(Scheme) (define (A255558 n) (let ((row (A255559 n)) (col (A255560 n))) (* (/ 1 2) (- (expt (+ row col) 2) row col col col -2))))
CROSSREFS
Inverse permutation: A255557.
Sequence in context: A246698 A246681 A123883 * A072062 A002192 A265888
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 14 2015
STATUS
approved