A168100 a(n) = number of natural numbers m such that n - 10 <= m <= n + 10.
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21
Offset: 0
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (1).
Programs
-
Mathematica
CoefficientList[Series[(10 - 9*x - x^12)/(1 - x)^2, {x, 0, 25}], x] (* G. C. Greubel, Jul 12 2016 *) Table[Count[Range[n-10,n+10],?Positive],{n,0,80}] (* or *) PadRight[ {10,11,12,13,14,15,16,17,18,19,20},120,{21}] (* _Harvey P. Dale, Jan 09 2019 *)
Formula
G.f.: (10 - 9*x - x^12)/(1 - x)^2. - G. C. Greubel, Jul 12 2016
Comments