A198971 a(n) = 5*10^n - 1.
4, 49, 499, 4999, 49999, 499999, 4999999, 49999999, 499999999, 4999999999, 49999999999, 499999999999, 4999999999999, 49999999999999, 499999999999999, 4999999999999999, 49999999999999999, 499999999999999999, 4999999999999999999, 49999999999999999999, 499999999999999999999
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..200
- Index entries for linear recurrences with constant coefficients, signature (11,-10).
Programs
-
Magma
[5*10^n-1 : n in [0..20]];
-
Mathematica
CoefficientList[Series[(4 + 5*x)/(1 - 11*x + 10*x^2), {x, 0, 30}], x] (* Vincenzo Librandi, Jan 03 2013 *) LinearRecurrence[{11,-10},{4,49},20] (* Harvey P. Dale, Dec 30 2018 *)
-
PARI
a(n)=5*10^n-1 \\ Charles R Greathouse IV, Oct 07 2015
Formula
a(n) = 10*a(n-1) + 9.
a(n) = 11*a(n-1) - 10*a(n-2), n>1.
G.f.: (4 + 5*x)/(1 - 11*x + 10*x^2). - Vincenzo Librandi, Jan 03 2013
E.g.f.: exp(x)*(5*exp(9*x) - 1). - Stefano Spezia, Nov 17 2022
Comments