OFFSET
0,2
COMMENTS
The binary representation of a(n)/10^n has exactly n digits "1". For n=3: (10^n-5^n)/10^n = 875/1000 = 7/8 = 0.111_2. - Ramon Ortega, Jun 22 2026
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..995
Index entries for linear recurrences with constant coefficients, signature (15,-50).
FORMULA
MATHEMATICA
Table[10^n - 5^n, {n, 0, 30}]
CoefficientList[Series[5 x/((1-5 x)(1-10 x)), {x, 0, 30}], x]
PROG
(Magma) [10^n-5^n: n in [0..30]];
(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
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, Oct 05 2014
STATUS
approved
