OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = C(n,0) + C(n,1) + 9*C(n,2) + 49*C(n,3) + 128*C(n,4) + 180*C(n,5) + 120*C(n,6).
a(n) = (1/6)*(n^6 - 6*n^5 + 27*n^4 - 53*n^3 + 56*n^2 - 19*n + 6). - Falk Hüffner, May 21 2026
EXAMPLE
On the 2-set {1,2}, there are 2^4 = 16 relations, and a(2) = 12 excludes exactly 4 of them: the universal relation {(1,1),(1,2),(2,1),(2,2)} is transitive but has 4 > 3 ordered pairs, and the non-transitive {(1,2),(2,1)}, {(1,1),(1,2),(2,1)}, and {(1,2),(2,1),(2,2)}. - Falk Hüffner, May 21 2026
MATHEMATICA
a[n_] := Total[{1, 1, 9, 49, 128, 180, 120} * Binomial[n, Range[0, 6]]]; Array[a, 33, 0] (* Amiram Eldar, Feb 10 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Firdous Ahmad Mala, Feb 10 2026
STATUS
approved
