任意自然数都有只含 0/1 的倍数
any natural number has a multiple whose decimal representation
题目详情
证明:任意自然数 都存在一个倍数,其十进制表示只包含数字 0 和 1。
例如 。
Show that any natural number has a multiple whose decimal representation only contains the digits 0 and 1. For example, if the number is 13, we get .
解析
考虑 个数:
它们模 的余数只有 种可能:
- 若其中某个余数为 0,则该数本身就是所求倍数;
- 否则由抽屉原理,必有两个数同余。用较大的减去较小的,得到一个由若干个 1 后接若干个 0 组成的数(十进制只含 0/1),且它们差仍被 整除。
因此结论成立。
Original Explanation
Consider the numbers 1,11,111,1111, etc. Two of them will be congruent modulo n. Subtract the smaller one from the bigger one. You will get a number containing only 0's and 1's.