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.

Showing 1-1 of 1 results.

A352783 Inverse permutation to A352782.

Original entry on oeis.org

0, 1, 2, 5, 3, 9, 10, 21, 4, 13, 18, 37, 11, 41, 42, 85, 6, 17, 26, 53, 19, 73, 74, 149, 20, 45, 82, 165, 43, 169, 170, 341, 7, 25, 34, 69, 27, 105, 106, 213, 36, 77, 146, 293, 75, 297, 298, 597, 22, 81, 90, 181, 83, 329, 330, 661, 84, 173, 338, 677, 171, 681
Offset: 0

Views

Author

Rémy Sigrist, Apr 02 2022

Keywords

Examples

			A352782(42) = 14, so a(14) = 42.
		

Crossrefs

Programs

  • PARI
    a(n) = { my (v=0, s=1, e, oz, o); while (n, n\=2^e=1+valuation(n, 2); oz = (sqrtint(e*8)+1)\2; o = e-binomial((sqrtint(8*e)+1)\2, 2); v += s * (2^o-1) * 2^(oz-o); s *= 2^(1+oz)); v }

Formula

A069010(a(n)) = A000120(n).
a(2^k) = A023758(k+1) for any k >= 0.
Showing 1-1 of 1 results.