OFFSET
1,4
COMMENTS
See A379914 for details.
A sequence, its reversal, and its complement (where all terms x are replaced by n-1-x) are all counted.
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..139 (rows 1..9)
FORMULA
T(n,0) = 1.
T(n,1) = n.
T(n,2) = n*(n-1) for n >= 2.
T(n,3) = A245996(n-1) for n >= 2.
Empirically: T(n,4) = T(n-1,4) + T(n-2,4) - T(n-5,4) - T(n-6,4) - T(n-7,4) + T(n-8,4) + T(n-9,4) + T(n-10,4) - T(n-13,4) - T(n-14,4) + T(n-15,4) for n >= 19.
EXAMPLE
Triangle begins:
1, 1;
1, 2, 2, 2;
1, 3, 6, 8;
1, 4, 12, 28, 38, 50, 24, 6;
1, 5, 20, 64, 148, 316, 370, 340, 152, 38;
...
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Pontus von Brömssen, Jan 09 2025
STATUS
approved