login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A215781
a(n) = ceiling(n*(sqrt(3)-1)).
2
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,3
COMMENTS
sqrt(3)-1 has continued fraction [0,1,2,1,2,1,2,...].
LINKS
Peter G. Anderson, Table of n, a(n) for n = 0..499 (corrected by Ray Chandler, Jan 19 2019)
MATHEMATICA
Table[Ceiling[n(Sqrt[3]-1)], {n, 0, 60}] (* Harvey P. Dale, Jan 15 2017 *)
PROG
(J) >. ( _1 + %:3) * i.500
CROSSREFS
A188070 is ceiling(n/(sqrt(3)-1)).
Sequence in context: A086525 A248231 A120503 * A215090 A083544 A377982
KEYWORD
nonn,easy
AUTHOR
Peter G. Anderson, Aug 23 2012
EXTENSIONS
Definition corrected by N. J. A. Sloane, Jan 15 2017
STATUS
approved