OFFSET
0,1
COMMENTS
In binary, each term differs from the previous by a single bit.
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,0,1,-2).
FORMULA
G.f.: ( 4+4*x+4*x^2 ) / ( (x-1)*(2*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Feb 20 2011
MAPLE
MATHEMATICA
a[n_] := 4*Floor[28*2^n/15]; Table[a[n], {n, 0, 40}] (* Stefan Steinerberger, Apr 08 2006 *)
CoefficientList[Series[(4+4x+4x^2)/((x-1)(2x-1)(1+x)(x^2+1)), {x, 0, 45}], x] (* Harvey P. Dale, Mar 13 2011 *)
PROG
(PARI) a(n)=28<<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
More terms from Stefan Steinerberger, Apr 08 2006
STATUS
approved