(In reply to
Computer Solution by Rajal)
A direct computer solution can be obtained via:
FOR s = 6 TO 9
FOR n = 1 TO 2
FOR e = 0 TO 9
IF e <> s AND e <> n THEN
FOR v = 0 TO 9
IF v <> e AND v <> s AND v <> n THEN
FOR i = 0 TO 9
IF i <> v AND i <> e AND i <> s AND i <> n THEN
FOR t = 0 TO 9
IF t <> i AND t <> v AND t <> e AND t <> s AND t <> n THEN
FOR h = 0 TO t
IF h <> t AND h <> i AND h <> v AND h <> e AND h <> s AND h <> n THEN
IF 9 * (s * 10000 + e * 1010 + v * 100 + n) = 7 * (n * 101000 + i * 10000 + t * 100 + h * 10 + s) THEN
PRINT s * 10000 + e * 1010 + v * 100 + n, n * 101000 + i * 10000 + t * 100 + h * 10 + s
END IF
END IF
NEXT
END IF
NEXT
END IF
NEXT
END IF
NEXT
END IF
NEXT
NEXT
NEXT

Posted by Charlie
on 20040927 16:16:18 