2
$\begingroup$

Possible Duplicate:
Computing GCD of all permutations (of the digits) of a given number.

How can we find the greatest common divisor (GCD) of all numbers that can be obtained by permuting the digits in the given number?

Please suggest a feasible algorithm.

  • 2
    Possible duplicate:http://math.stackexchange.com/questions/8943/computing-gcd-of-all-permutations-of-the-digits-of-a-given-number2011-02-20

2 Answers 2