OFFSET
0,3
COMMENTS
Number of binary relations on an n-element set that are neither reflexive nor irreflexive. Note that "irreflexive" = "antireflexive".
The empty relation, unlike all others, is (trivially) both reflexive and irreflexive.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..50
MATHEMATICA
Join[{0}, Table[2^(n^2) - 2^(n^2 - n + 1), {n, 1, 25}]] (* G. C. Greubel, Aug 30 2016 *)
PROG
(PARI) a(n) = if(n<=0, 0, 2^(n^2)-2^(n^2-n+1))
(Magma) [0] cat [2^(n^2) - 2^(n^2 -n +1): n in [1..15]]; // Vincenzo Librandi, Aug 31 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jan 02 2009
STATUS
approved