John, An intriguing number. The sequence stops when 6174 appears, since the next step gives the same 4 digits, and so on, ad infinitum. However, if the next step uses 6174 instead of 7641, ie, don't use the biggest number represented by these 4 digits, after 12 iterations 6174 is reached again. Hugh.