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