Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #12 Jun 29 2023 12:53:57
%S 9,10,11,12,13,14,15,16,17,18,19,19,19,19,19,19,19,19,19,19,19,19,19,
%T 19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,
%U 19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19
%N a(n) = number of natural numbers m such that n - 9 <= m <= n + 9.
%C Generalization: If a(n,k) = number of natural numbers m such that n - k <= m <= n + k (k >= 1) then a(n,k) = a(n-1,k) + 1 = n + k for 0 <= n <= k, a(n,k) = a(n-1,k) = 2k + 1 for n >= k + 1 (see, e.g., A158799). a(n) = 9 + n for 0 <= n <= 9, a(n) = 19 for n >= 10.
%H <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (1).
%F G.f.: (9 - 8*x - x^11)/(1 - x)^2. - _G. C. Greubel_, Jul 12 2016
%t CoefficientList[Series[(9 - 8*x - x^11)/(1 - x)^2, {x, 0, 25}], x] (* _G. C. Greubel_, Jul 12 2016 *)
%K nonn
%O 0,1
%A _Jaroslav Krizek_, Nov 18 2009