OFFSET
0,3
REFERENCES
V. Vatter, The Enumeration and Structure of Permutation Classes, Ph. D. Dissertation, Rutgers Univ., Math. Dept., 2006.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,1,1).
FORMULA
a(n) = 2*a(n-1) + a(n-3) - 2*(-1)^n for n >= 10. - Greg Dresden, May 18 2020
MATHEMATICA
LinearRecurrence[{1, 2, 1, 1}, {0, 1, 2, 5, 12, 28, 62, 136, 299, 661, 1456}, 35] (* Paolo Xausa, Jun 04 2026 *)
PROG
(PARI) a(n)=if(n>6, ([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; 1, 1, 2, 1]^(n-7)*[136; 299; 661; 1456])[1, 1], [0, 1, 2, 5, 12, 28, 62][n+1]) \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 17 2005
STATUS
approved
