OFFSET
1,1
COMMENTS
Numbers whose binary expansion is 10..011 or 110..01.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,3,0,-2).
FORMULA
a(2k) = 2^(k+2)+3, a(2k+1) = 3*2^(k+1)+1. - N. J. A. Sloane, Jul 19 2014
a(n) = 3*a(n-2)-2*a(n-4). G.f.: -x*(14*x^3+8*x^2-11*x-7) / ((x-1)*(x+1)*(2*x^2-1)). - Colin Barker, Jul 19 2014
MATHEMATICA
CoefficientList[Series[- (14 x^3 + 8 x^2 - 11 x - 7)/((x - 1) (x + 1) (2 x^2 - 1)), {x, 0, 50}], x] (* Vincenzo Librandi, Jul 23 2014 *)
LinearRecurrence[{0, 3, 0, -2}, {7, 11, 13, 19}, 50] (* Harvey P. Dale, Mar 05 2015 *)
PROG
(Magma) &cat [[3*2^i+1, 2^(i+2)+3]: i in [1..30]]; // Bruno Berselli, Jul 23 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 17 2014
STATUS
approved