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.

A215781 a(n) = ceiling(n*(sqrt(3)-1)).

Original entry on oeis.org

0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 11, 12, 13, 14, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 22, 22, 23, 24, 25, 25, 26, 27, 28, 28, 29, 30, 31, 31, 32, 33, 33, 34, 35, 36, 36, 37, 38, 39, 39, 40, 41, 41, 42
Offset: 0

Views

Author

Peter G. Anderson, Aug 23 2012

Keywords

Comments

sqrt(3)-1 has continued fraction [0,1,2,1,2,1,2,...].

Crossrefs

A188070 is ceiling(n/(sqrt(3)-1)).

Programs

  • J
    >. ( _1 + %:3) * i.500
  • Mathematica
    Table[Ceiling[n(Sqrt[3]-1)],{n,0,60}] (* Harvey P. Dale, Jan 15 2017 *)

Extensions

Definition corrected by N. J. A. Sloane, Jan 15 2017