in Set Theory & Algebra recategorized by
5,803 views
24 votes
24 votes
How many binary relations are there on a set $A$ with $n$ elements?
in Set Theory & Algebra recategorized by
5.8k views

2 Comments

Binary relation on a set A is a subset of (AxA).

Ternary relation on a set A is a subset of (AxAxA).
1
1

@raja11sep 

@Udhay Brahmi

number of ternary relations in the set will be 2^(n^3) right??

0
0

4 Answers

39 votes
39 votes
Best answer
The total number of binary relation from n element set to itself is $2^{n^{2}}$ i.e. $n^2$ entries with two choices take it or not.
edited by

1 comment

Also, we can view it like this

A relation is a subset of AxB.

Here it will be a subset of AxA.

now AxA will contain $n^2$ terms

now number of relations is same as the number of binary bit strings of length $n^2$
14
14
18 votes
18 votes

∣A∣ =n

∣A⨉A∣ = n^2

Relation is the subsets of A⨉A, so the total no of binary relation on set A = cardinality of power set of (A⨉A)  = ∣ p(A⨉A) ∣ =2^(n^2)

                                                                                                                   

So, the correct answer is 2^(n^2).

                                                                                     

0 votes
0 votes

 

we know that 

number of elements in ∣A∣ =n

so total number of elements in ∣A⨉A∣ = n x n = n²

 

Relation is the subsets of A⨉A,

so the total no of binary relation on set A = cardinality of power set of (A⨉A) 

 

= ∣ p(A⨉A) ∣ =2^(n²)

0 votes
0 votes
here is another way to think about the answer

similar to functions , think about how many ways are there to map 1 element in domain A to the co-domain A?

as one element can be related/mapped to multiple elements at once in relations, there are $2^{|A|}$ mapping from a unique element in A to A because every element in codomain has a choice to be or not to be part of the mapping.

so total possible relations = $\Pi_{i=1}^n \text{mapping of }A_i = (2^n)^n = 2^{n^2}$
edited by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true