最小正整数:除以 2..10 余数依次为 1..9
Find the smallest positive integer
题目详情
求最小的正整数 ,使得:
- 除以 2 余 1;
- 除以 3 余 2;
- 除以 4 余 3;
……一直到 除以 10 余 9。
Find the smallest positive integer that leaves a remainder of 1 when divided by 2, a remainder of 2 when divided by 3, a remainder of 3 when divided by 4, .. and a remainder of 9 when divided by 10.
解析
题意为对每个 都有
因此 同时被 2 到 10 的所有整数整除,即
最小正解取 ,得到