The only four-digit constant that conforms to the specifications of homework #5 (but now as long as not all the digits are the same) is any permutation of 6174. So 7641-1467 is 6174 which is known in number theory as Kaprekar's constant.