OFFSET
1,3
COMMENTS
The N X N binary matrix of an equivalence relation is perfectly defined by its upper-right triangle. We encode such a matrix with the (N*(N-1))/2 bit number obtained by joining together each line of the upper-right triangle. The numbers are converted to base 10.
This is an infinite sequence and can be used for arbitrarily large values of N. To enumerate the finite list of n X n matrices for a given n, truncate this sequence to the first A000110(n) elements.
LINKS
Philippe Beaudoin, Table of n, a(n) for n = 1..10000
Philippe Beaudoin, Python program to generate the sequence
Tilman Piesk, Illustrated list of the first 52 equivalence relations
Tilman Piesk, Permutations and partitions in the OEIS (Wikiversity)
EXAMPLE
The 4 X 4 equivalence matrices are represented by the first A000110(4) = 15 elements, that is: 0, 1, 2, 4, 7, 8, 12, 16, 18, 25, 32, 33, 42, 52, 63.
The 4 X 4 matrix corresponding to 25 = 0b011001 is:
1 0 1 1
0 1 0 0
1 0 1 1
1 0 1 1
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Beaudoin, Nov 09 2013
STATUS
approved