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.

A064369 Smallest integer in Recamán's sequence (A005132) to appear n times.

Original entry on oeis.org

0, 42, 261, 490, 494, 5447, 10023, 18519, 33543, 34292, 62263, 62267, 113405, 113406, 199251, 199252, 199504, 2060609, 2060610, 2060612, 2060614, 2060616, 2060617, 2060618, 2060701, 11526662, 11526664, 11526665, 11526667, 11526670, 11526840, 11526842, 11526845, 11526855, 20389507
Offset: 1

Views

Author

Robert G. Wilson v, Sep 26 2001

Keywords

Crossrefs

Cf. A005132.

Programs

  • Mathematica
    a = {1}; Do[ If[ a[ [ -1 ] ] - n > 0 && Position[ a, a[ [ -1 ] ] - n ] == {}, a = Append[ a, a[ [ -1 ] ] - n ], a = Append[ a, a[ [ -1 ] ] + n ] ], {n, 2, 10^5} ]; b = Sort[ a ]; Do[ k = 1; While[ b[ [ k ] ] != b[ [ k + n ] ], k++ ]; Print[ b[ [ k ] ] ], {n, 1, 13} ]

Extensions

a(15)-a(35) by Jud McCranie, Dec 21 2019