OFFSET
0,4
LINKS
Des MacHale and Peter MacHale, Relations on Sets, The Mathematical Gazette, Vol. 97, No. 539 (July 2013), pp. 224-233 (10 pages).
EXAMPLE
For n = 3: the set [3] = {1, 2, 3} has 3^2 - 3 = 6 off-diagonal pairs.
Total reflexive relations: 2^6 = 64.
Reflexive and symmetric: 2^3 = 8.
Reflexive and transitive (preorders): A000798(3) = 29.
Equivalence relations: B3 = 5.
By inclusion-exclusion: a(3) = 64 - 8 - 29 + 5 = 32.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Firdous Ahmad Mala, Mar 26 2026
STATUS
approved
