OFFSET
1,2
COMMENTS
Binary numbers of the form (n)00(m) where n and m are the number of 1's, m is the index and n=m-1.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,-14,8).
FORMULA
G.f.: x*(1+12*x-16*x^2)/((1-x)*(1-2*x)*(1-4*x)). - Bruno Berselli, Sep 19 2011
EXAMPLE
First few terms in binary are 1, 10011, 1100111, 111001111, 11110011111, 1111100111111.
PROG
(PARI) a(n)=1<<(2*n+1)-3<<n-1 \\ Charles R Greathouse IV, Sep 19 2011
(Magma) [2*4^n-3*2^n-1: n in [1..23]]; // Bruno Berselli, Sep 19 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Brad Clardy, Sep 18 2011
STATUS
approved