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.

A327120 Inverse permutation to A327119.

Original entry on oeis.org

1, 2, 4, 3, 6, 10, 8, 5, 7, 16, 12, 28, 14, 22, 9, 11, 18, 15, 20, 26, 13, 34, 24, 82, 46, 40, 36, 19, 30, 23, 32, 21, 64, 52, 17, 50, 38, 58, 76, 27, 42, 244, 44, 56, 31, 70, 48, 25, 29, 100, 66, 35, 54, 39, 136, 43, 106, 88, 60, 118, 62, 94, 37, 51, 78, 47, 68, 86
Offset: 0

Views

Author

Jennifer Buckley, Sep 13 2019

Keywords

Crossrefs

Inverse: A327119.

Programs

  • PARI
    a(n) = { my (d=0); while (n, d = select(t -> t>d, divisors(n))[1]; my (k=n/d); if (k%2, n-=d, n+=d)); return (d+1) } \\ Rémy Sigrist, Sep 14 2019