A057933 Floor[(80/81)*10^n].
9, 98, 987, 9876, 98765, 987654, 9876543, 98765432, 987654320, 9876543209, 98765432098, 987654320987, 9876543209876, 98765432098765, 987654320987654, 9876543209876543, 98765432098765432, 987654320987654320
Offset: 1
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (10,0,0,0,0,0,0,0,1,-10).
Crossrefs
Cf. A057932.
Programs
-
Mathematica
Floor[80/81*10^Range[20]] (* Harvey P. Dale, May 28 2017 *)
-
PARI
a(n)=10^n*80\81
Formula
G.f.:(9x+8x^2+7x^3+6x^4+5x^5+4x^6+3x^7+2x^8)/((1-10x)(1-x^9)).
a(n)=10*a(n-1)-(n%9)+10*(n%9!=0).