OFFSET
1,2
COMMENTS
a(n) is also the number whose binary representation is the concatenation of n-1 1's, 0, n-1 1's and 0 (See example). [From Omar E. Pol, Mar 16 2010]
LINKS
Index entries for linear recurrences with constant coefficients, signature (7, -14, 8).
FORMULA
a(n)= 7*a(n-1) -14*a(n-2) +8*a(n-3) = 2*A129868(n-1). G.f.: 2*x^2*(-5+8*x)/((x-1) * (2*x-1) * (4*x-1)). [From R. J. Mathar, Feb 14 2010]
a(n) = 2*(A006516(n)-1) [From Omar E. Pol, Mar 16 2010]
EXAMPLE
Contribution from Omar E. Pol, Mar 16 2010: (Start)
n ...... a(n) written in base 2 ..... a(n)
1 ................ 0 ................ 0
2 ............... 1010 .............. 10
3 .............. 110110 ............. 54
4 ............. 11101110 ............ 238
5 ............ 1111011110 ........... 990
6 ........... 111110111110 .......... 4030
7 .......... 11111101111110 ......... 16254
8 ......... 1111111011111110 ........ 65278
9 ........ 111111110111111110 ....... 261630
10 ...... 11111111101111111110 ...... 1047550
(End)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 13 2010
STATUS
approved