Take any four digit number (whose digits are not all identical), and do the following:

1) Rearrange the string of digits to form the largest and smallest 4-digit numbers possible.
2) Take these two numbers and subtract the smaller number from the larger.
3) Use the number you obtain and repeat the above process.

If u do this you'll reach 6174 and remain the same and continues on..!!!