OFFSET
1,2
COMMENTS
a(n) is also A016152(n) written in base 2.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..300
Index entries for linear recurrences with constant coefficients, signature (1100,-100000).
FORMULA
a(n) = A138119(n)/10.
a(n) = 1100*a(n-1)-100000*a(n-2). G.f.: x / ((100*x-1)*(1000*x-1)). - Colin Barker, Sep 16 2013
EXAMPLE
n ...... a(n)
1 ....... 1
2 ...... 1100
3 ..... 1110000
4 .... 1111000000
5 ... 1111100000000
MATHEMATICA
Array[(10^#-1)*10^(2*#-2)/9 &, 20] (* or *)
LinearRecurrence[{1100, -100000}, {1, 1100}, 20] (* Paolo Xausa, Feb 27 2024 *)
PROG
(PARI) Vec(x/((100*x-1)*(1000*x-1)) + O(x^100)) \\ Colin Barker, Sep 16 2013
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Omar E. Pol, Nov 13 2008
STATUS
approved