What is the smallest positive integer n that satisfies the following condition?
∀ b ∈ { 1 , 2 , … , 8 } : n m o d b < n m o d ( b + 1 )
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Nice! I found the solution the hard way, although it helped to review Chinese remainder theorem, with non-coprime modulos.
Let us start with 1 . We know n mod 1 = 0 . Now the remainder when n is divided by 2 must be 1 . As n mod b < n mod ( b + 1 ) and remainder when n is divided by 2 is at most 1 . Thus, the sequence of the remainders when n is divided by 1 , 2 , . . . . . , 8 , 9 is respectively 0 , 1 , . . . . . 8 . Hence, we can write n = p ∗ b + b − 1 . Or, b ∣ n + 1 . So, the minimum n+1 is the L C M ( 1 , 2 . . . . 9 ) = 2 5 2 0 . So, the minimum n = 2 5 1 9 .
Problem Loading...
Note Loading...
Set Loading...
n m o d 1 = 0 for all integers.
n m o d 2 ∈ { 0 , 1 } , but it can't be 0 because the condition requires n m o d 1 < n m o d 2 , so n m o d 2 = 1 .
n m o d 3 ∈ { 0 , 1 , 2 } , but again, the condition leaves only 2, so n m o d 3 = 2 .
Following the same logic, we can deduce n m o d b = b − 1 ⇔ n + 1 m o d b = 0 up to b = 9 . So, let's find out the smallest n + 1 . Since it leaves a remainder of 0 under division by 1 , 2 , 3 , … , 9 , it has to be the least common multiple of these numbers, which is 2 3 ⋅ 3 2 ⋅ 5 1 ⋅ 7 1 = 2 5 2 0 and therefore n = 2 5 1 9 .