OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Rudin-Shapiro Sequence.
Index entries for linear recurrences with constant coefficients, signature (1,2,-2).
FORMULA
Apart from leading term, just A000051 (2^n + 1) doubled up.
G.f.: -x*(-2 - x + 4*x^2)/((x - 1)*(2*x^2 - 1)). - R. J. Mathar, Jul 15 2016
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3). - Wesley Ivan Hurt, Aug 19 2022
E.g.f.: cosh(x) + cosh(sqrt(2)*x) + sinh(x) + sinh(sqrt(2)*x)/sqrt(2) - 2. - Stefano Spezia, Feb 05 2023
MATHEMATICA
d2n[n_]:=Module[{x=2^n+1}, {x, x}]; Join[{2}, Flatten[Array[d2n, 30]]] (* Harvey P. Dale, May 26 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved