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.

A210771 Inverse permutation to A210770.

Original entry on oeis.org

1, 2, 4, 6, 3, 8, 5, 10, 12, 7, 14, 16, 18, 9, 20, 22, 11, 24, 26, 13, 28, 30, 15, 32, 17, 34, 36, 19, 38, 40, 21, 42, 44, 23, 46, 48, 25, 50, 52, 27, 54, 56, 29, 58, 60, 31, 62, 64, 66, 33, 68, 70, 35, 72, 74, 37, 76, 78, 39, 80, 82, 41, 84, 86, 43, 88, 90
Offset: 1

Views

Author

Reinhard Zumkeller, Mar 25 2012

Keywords

Programs

  • Haskell
    import Data.List (elemIndex)
    import Data.Maybe (fromJust)
    a210771 n = fromJust (elemIndex n a210770_list) + 1