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

A056833
Nearest integer to n^2/7.
2
0, 0, 1, 1, 2, 4, 5, 7, 9, 12, 14, 17, 21, 24, 28, 32, 37, 41, 46, 52, 57, 63, 69, 76, 82, 89, 97, 104, 112, 120, 129, 137, 146, 156, 165, 175, 185, 196, 206, 217, 229, 240, 252, 264, 277, 289, 302, 316, 329, 343, 357, 372, 386, 401, 417, 432, 448
OFFSET
0,5
FORMULA
G.f.: -x^2*(x+1)*(x^2-x+1)^2/((x-1)^3*(x^6+x^5+x^4+x^3+x^2+x+1)). [Colin Barker, Oct 08 2012]
MATHEMATICA
Round[Range[0, 60]^2/7] (* or *) LinearRecurrence[{2, -1, 0, 0, 0, 0, 1, -2, 1}, {0, 0, 1, 1, 2, 4, 5, 7, 9}, 60] (* Harvey P. Dale, Jul 31 2019 *)
PROG
(Magma) a056833:=func< n | Round(n^2/7) >; [ a056833(n): n in [0..70] ];
CROSSREFS
Sequence in context: A219648 A062428 A250000 * A275534 A069355 A212661
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 02 2000
STATUS
approved