A168094 a(n) = number of natural numbers m such that n - 4 <= m <= n + 4.
4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1).
Crossrefs
Cf. A000027.
Programs
-
Mathematica
CoefficientList[Series[(4 - 3*x - x^6)/(1 - x)^2, {x, 0, 25}], x] (* G. C. Greubel, Jul 12 2016 *)
Formula
a(n) = 4 + n for 0 <= n <= 4, a(n) = 9 for n >= 4.
G.f.: (4 - 3*x - x^6)/(1 - x)^2. - G. C. Greubel, Jul 12 2016
Comments