When 39,500 is divided by an integer $n$, the quotient is 123 and the remainder is 17. Find $n$.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
When 39,500 is divided by an integer $n$, the quotient is 123 and the remainder is 17. Find $n$.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
321
When 39,500 is divided by an integer $n$, the quotient is 123 and the remainder is 17. Find $n$.
train