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.

A246698 Inverse of A246696 considered as a permutation of the positive integers.

Original entry on oeis.org

1, 2, 3, 5, 4, 7, 6, 9, 8, 12, 10, 14, 11, 16, 13, 18, 15, 20, 17, 23, 19, 25, 21, 27, 22, 29, 24, 31, 26, 33, 28, 35, 30, 38, 32, 40, 34, 42, 36, 44, 37, 46, 39, 48, 41, 50, 43, 52, 45, 54, 47, 57, 49, 59, 51, 61, 53, 63, 55, 65, 56, 67, 58, 69, 60, 71, 62
Offset: 1

Views

Author

Clark Kimberling, Sep 02 2014

Keywords

Crossrefs

Programs

  • Mathematica
    z = 25; t[0, 0] = 1; t[1, 0] = 2; t[1, 1] = 3; t[n_, 0] := t[n, 0] = If[OddQ[n], t[n - 1, n - 2] + 2, t[n - 1, n - 1] + 2]; t[n_, 1] := t[n, 1] = If[OddQ[n], t[n - 1, n - 1] + 2, t[n - 1, n - 2] + 2]
    t[n_, k_] := t[n, k] = t[n, k - 2] + 2;
    u = Flatten[Table[t[n, k], {n, 0, z}, {k, 0, n}]] (* A246696 *)
    Flatten[Table[Position[u, n], {n, 1, 80}]]  (* A246698 *)

Extensions

Definition corrected and edited by M. F. Hasler, Nov 17 2014