A248340 a(n) = 10^n - 5^n.
0, 5, 75, 875, 9375, 96875, 984375, 9921875, 99609375, 998046875, 9990234375, 99951171875, 999755859375, 9998779296875, 99993896484375, 999969482421875, 9999847412109375, 99999237060546875, 999996185302734375, 9999980926513671875
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..995
- Index entries for linear recurrences with constant coefficients, signature (15,-50).
Crossrefs
Programs
-
Magma
[10^n-5^n: n in [0..30]];
-
Mathematica
Table[10^n - 5^n, {n,0,30}] CoefficientList[Series[5 x/((1-5 x)(1-10 x)), {x, 0, 30}], x]
-
Python
def A248340(n): return pow(10,n) - pow(5,n) print([A248340(n) for n in range(41)]) # G. C. Greubel, Nov 13 2024