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”).

A000277
3*n - 2*floor(sqrt(4*n+5)) + 5.
1
1, 2, 5, 6, 9, 10, 13, 16, 17, 20, 23, 24, 27, 30, 33, 34, 37, 40, 43, 44, 47, 50, 53, 56, 57, 60, 63, 66, 69, 70, 73, 76, 79, 82, 85, 86, 89, 92, 95, 98, 101, 102, 105, 108, 111, 114, 117, 120, 121, 124, 127, 130, 133, 136, 139, 140, 143, 146, 149, 152, 155
OFFSET
0,2
MATHEMATICA
Table[3*n - 2*Floor[Sqrt[4 n + 5]] + 5, {n, 0, 100}] (* T. D. Noe, Jun 19 2012 *)
PROG
(PARI) a(n)=3*n-2*sqrtint(4*n+5)+5
CROSSREFS
Sequence in context: A276883 A288552 A187583 * A003664 A065890 A162177
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, based on a message from Michael S. Cann Jr. (mscannjr(AT)gmail.com)
STATUS
approved