Skip to main content

Discrete Math with SageMath: Learn math with open-source software

Section 5.2 Relations on a set

When \(A = B\) we refer to the relation as a relation on \(A\text{.}\)
Consider the set \(A = \{2,3,4,6,8\}\text{.}\) Let’s define a relation \(R\) on \(A\) such that \(aRb\) iff \(a | b\) (\(a\) divides \(b\)). The relation \(R\) can be represented by the set of ordered pairs where the first element divides the second: