OFFSET
0,5
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,1,0,-1,-1,1).
FORMULA
From Colin Barker, Sep 08 2020: (Start)
G.f.: x^3*(1 + x + x^2 - x^3) / ((1 - x)^3*(1 + x)*(1 + x + x^2)).
a(n) = a(n-1) + a(n-2) - a(n-4) - a(n-5) + a(n-6) for n>6. (End)
E.g.f.: (36 - 9*exp(-x) + exp(x)*(6*x^2 + 6*x - 19) - 8*exp(-x/2)*cos(sqrt(3)*x/2))/36. - Stefano Spezia, Apr 05 2023
EXAMPLE
The a(3) = 1 through a(8) = 10 triples:
(1,1,1) (1,1,2) (1,1,3) (1,1,4) (1,1,5) (1,1,6)
(2,1,1) (1,2,2) (1,2,3) (1,2,4) (1,2,5)
(2,2,1) (2,2,2) (1,3,3) (1,3,4)
(3,1,1) (3,2,1) (2,2,3) (2,2,4)
(4,1,1) (3,2,2) (2,3,3)
(3,3,1) (3,3,2)
(4,2,1) (4,2,2)
(5,1,1) (4,3,1)
(5,2,1)
(6,1,1)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n, {3}], LessEqual@@#||GreaterEqual@@#&]], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gus Wiseman, Sep 07 2020
STATUS
approved