OFFSET
1,2
COMMENTS
Other characterization of the sequence: concatenate pattern (1,3,2) multiplying it by 4 after each concatenation step. Or: Start with 1,3,2, then iteratively append the whole sequence obtained so far multiplied by 4^(length of the sequence divided by 3)
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,4).
FORMULA
If n==2 (mod 3) then a(n) = 3*2^[2*(n-1)/3]; else a(n) = 2^[2*(n-1)/3].
From Colin Barker, Aug 19 2012: (Start)
a(n) = 4*a(n-3) for n>3.
G.f.: x*(1+x)*(1+2*x)/(1-4*x^3). (End)
MATHEMATICA
A137824[n_] := 2^Quotient[2*(n-1), 3]*If[Mod[n, 3] == 2, 3, 1];
Array[A137824, 40] (* Paolo Xausa, May 25 2026 *)
(* Alternative: *)
LinearRecurrence[{0, 0, 4}, {1, 3, 2}, 40] (* Paolo Xausa, May 25 2026 *)
PROG
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
M. F. Hasler, May 15 2008
EXTENSIONS
More terms from Paolo Xausa, May 25 2026
STATUS
approved
