login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A173521
a(n) is the concatenation of n 1's, 0, n 1's and 0.
1
0, 1010, 110110, 11101110, 1111011110, 111110111110, 11111101111110, 1111111011111110, 111111110111111110, 11111111101111111110, 1111111111011111111110, 111111111110111111111110
OFFSET
0,2
COMMENTS
a(n) is also A170940(n+1) written in base 2.
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
Sequence in context: A252683 A157010 A076940 * A266442 A266673 A055473
KEYWORD
base,easy,nonn
AUTHOR
Omar E. Pol, Mar 16 2010
STATUS
approved