cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A257504 Inverse permutation to A257503.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, May 06 2015

Keywords

Crossrefs

Inverse: A257503.

Programs

  • Scheme
    (define (A257504 n) (let ((col (A257681 n)) (row (A257679 n))) (* (/ 1 2) (- (expt (+ row col) 2) row col col col -2))))

Formula

a(n) = (1/2) * ((c+r)^2 - r - 3*c + 2), where c = A257681(n), and r = A257679(n).