Please reason step by step, and put your final answer within \boxed{}.
Let n be the greatest number that will divide 1305, 4665, and a number, leaving the same remainder in each case. The sum of the digits in n is 4. What is the third number?
user