A056829 Nearest integer to n^2/6.
0, 0, 1, 2, 3, 4, 6, 8, 11, 14, 17, 20, 24, 28, 33, 38, 43, 48, 54, 60, 67, 74, 81, 88, 96, 104, 113, 122, 131, 140, 150, 160, 171, 182, 193, 204, 216, 228, 241, 254, 267, 280, 294, 308, 323, 338, 353, 368, 384, 400, 417, 434, 451, 468, 486, 504
Offset: 0
Links
- Harvey P. Dale, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,1,-2,1).
Programs
-
Mathematica
Round[Range[0,60]^2/6] (* or *) LinearRecurrence[{2,-1,0,0,0,1,-2,1},{0,0,1,2,3,4,6,8},60] (* Harvey P. Dale, Oct 11 2020 *)
Formula
G.f.: -x^2*(1+x^4) / ( (1+x)*(1+x+x^2)*(x^2-x+1)*(x-1)^3 ). - R. J. Mathar, Jul 10 2015