OFFSET
0,2
COMMENTS
a(n) is also A170940(n+1) written in base 2.
LINKS
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
G.f.: 10*x*(200*x-101) / ((x-1)*(10*x-1)*(100*x-1)). [Colin Barker, Sep 17 2013]
EXAMPLE
n ............... a(n)
0 ................ 0
1 ............... 1010
2 .............. 110110
3 ............. 11101110
4 ............ 1111011110
5 ........... 111110111110
6 .......... 11111101111110
7 ......... 1111111011111110
8 ........ 111111110111111110
9 ....... 11111111101111111110
MATHEMATICA
Table[FromDigits[Join[PadRight[{}, n, 1], {0}, PadRight[{}, n, 1], {0}]], {n, 0, 20}] (* Harvey P. Dale, Feb 25 2012 *)
PROG
(PARI) Vec(10*x*(200*x-101)/((x-1)*(10*x-1)*(100*x-1)) + O(x^100)) \\ Colin Barker, Sep 17 2013
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Omar E. Pol, Mar 16 2010
STATUS
approved