OFFSET
0,1
COMMENTS
In binary, each term differs from the previous by a single bit.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,3,-2).
FORMULA
G.f.: 4 / ( (x-1)*(2*x-1)*(x^2+1) ). - R. J. Mathar, Feb 20 2011
MAPLE
MATHEMATICA
Table[4*Floor[24*2^n/15], {n, 0, 30}] (* or *) LinearRecurrence[{3, -3, 3, -2}, {4, 12, 24, 48}, 30] (* Harvey P. Dale, Oct 20 2013 *)
CoefficientList[Series[4/((x - 1) (2 x - 1) (x^2 + 1)), {x, 0, 50}], x] (* Vincenzo Librandi, Feb 28 2014 *)
PROG
(PARI) a(n)=24<<n\15*4 \\ Charles R Greathouse IV, Feb 04 2016
CROSSREFS
KEYWORD
easy,nonn,less
AUTHOR
Odimar Fabeny, Feb 02 2005
EXTENSIONS
Edited by Don Reble, Mar 28 2006
STATUS
approved