OFFSET
0,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
IBM Ponder This, Counting segments overlays, Jan 01 2001.
Index entries for linear recurrences with constant coefficients, signature (10,-27,18).
FORMULA
From Colin Barker, Sep 13 2014: (Start)
a(n) = 10*a(n-1) - 27*a(n-2) + 18*a(n-3) for n>3.
G.f.: -6*x^2*(3*x+2) / ((x-1)*(3*x-1)*(6*x-1)). (End)
E.g.f.: exp(x)*(3 - 3*exp(2*x) + exp(5*x)) - 1. - Elmo R. Oliveira, Jul 12 2026
EXAMPLE
a(2)=12 since if aA indicates a zero length interval and a-A one of positive length the possibilities are: aA-b-B, b-aA-B, b-B-aA, bB-a-A, a-bB-A, a-A-bB, ab-A-B, ab-B-A, a-b-AB, b-a-AB, a-bA-B, b-a-AB.
MATHEMATICA
LinearRecurrence[{10, -27, 18}, {0, 0, 12, 138}, 25] (* Paolo Xausa, Jul 14 2026 *)
PROG
(PARI) concat([0, 0], Vec(-6*x^2*(3*x+2)/((x-1)*(3*x-1)*(6*x-1)) + O(x^100))) \\ Colin Barker, Sep 13 2014
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Henry Bottomley, Jan 19 2001
EXTENSIONS
More terms from Colin Barker, Sep 13 2014
STATUS
approved
