A332159 a(n) = 5*(10^(2*n+1)-1)/9 + 4*10^n.
9, 595, 55955, 5559555, 555595555, 55555955555, 5555559555555, 555555595555555, 55555555955555555, 5555555559555555555, 555555555595555555555, 55555555555955555555555, 5555555555559555555555555, 555555555555595555555555555, 55555555555555955555555555555, 5555555555555559555555555555555
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
Crossrefs
Programs
-
Maple
A332159 := n -> 5*(10^(2*n+1)-1)/9+4*10^n;
-
Mathematica
Array[5 (10^(2 # + 1)-1)/9 + 4*10^# &, 15, 0] Table[FromDigits[Join[PadRight[{},n,5],PadRight[{9},n+1,5]]],{n,0,20}] (* or *) LinearRecurrence[ {111,-1110,1000},{9,595,55955},20] (* Harvey P. Dale, May 31 2023 *)
-
PARI
apply( {A332159(n)=10^(n*2+1)\9*5+4*10^n}, [0..15])
-
Python
def A332159(n): return 10**(n*2+1)//9*5+4*10**n