human
Number of Symmetric Relations on a Set | function find the square of n.
Base case.
Return 2 ^ ( n ( n + 1 ) / 2 ).
Driver code"
Solution in Python:
assistant
#Here is code to number of Symmetric Relations on a Set and the other steps required.
 def countSymmetric ( n ) :
	if ( n == 0 ) :
		return 1
	return ( 1 << ( ( n * ( n + 1 ) ) // 2 ) )
n = 3
print ( countSymmetric ( n ) )