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.

A026137 a(n) = position of n in A026136.

Original entry on oeis.org

1, 3, 2, 6, 7, 9, 4, 12, 5, 15, 16, 18, 19, 21, 8, 24, 25, 27, 10, 30, 11, 33, 34, 36, 13, 39, 14, 42, 43, 45, 46, 48, 17, 51, 52, 54, 55, 57, 20, 60, 61, 63, 22, 66, 23, 69, 70, 72, 73, 75, 26, 78, 79, 81, 28, 84, 29, 87, 88, 90, 31, 93, 32
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A026136.

Programs

  • Mathematica
    Block[{a, nn = 188}, a[1] = 1; Do[If[! IntegerQ[a[#1]], Set[a[#1], i], Set[a[#2], i]] & @@ {i - #, i + #} &@ Floor[i/2], {i, nn}]; a = TakeWhile[Array[a[#] &, nn], IntegerQ]; TakeWhile[Array[FirstPosition[a, #][[1]] &, nn], IntegerQ]] (* Michael De Vlieger, Apr 16 2020 *)

Extensions

Edited by N. J. A. Sloane, Jan 31 2020