Number of Symmetric Relations on a Set
Given a number n, find out the number of Symmetric Relations on a set of first n natural numbers {1, 2, ..n}. Examples: Input : n = 2 Output : 8 Given set is {1, 2}. Below are all symmetric relation. {} {(1, 1)}, {(2, 2)}, {(1, 1), (2, 2)}, {(1, 2), (2, 1)} {(1, 1), (1, 2), (2, 1)}, {(2, 2), (1, 2),