I am asked to find the number of elements in the quotient set of $A\times A \quad$ $A=\{100000,...,999999\}$ considering that the defined relationship n~m $\Leftrightarrow$ n and m they have exactly the same digits except for the order in which they appear, for example 347222~272432 and 110001~100011.
What is the correct way to do this exercise? I have tried several ways without success.