|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,5
|
|
LINKS
|
|
|
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
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|