This math project tests random 4 digit numbers to see if they converge to 6174, Kaprekar's constant.
To test the number, the digits of the number are put into descending order and also into ascending order. The smaller number is subtracted from the larger one and the difference is used as the new starting number. Somehow this always gives 6174 in the end. The random number can't be all the same digits. 1111 won't work, but 1110 will.