Increasing remainders – 2

What is the smallest positive integer n n that satisfies the following condition?

b { 1 , 2 , , 8 } : n m o d b < n m o d ( b + 1 ) \forall b \in \{1,2,\ldots,8\} : n \bmod b < n \bmod (b+1)


The answer is 2519.

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.

2 solutions

Henry U
Dec 22, 2018

n m o d 1 = 0 n \bmod 1 = 0 for all integers.

n m o d 2 { 0 , 1 } n \bmod 2 \in \{0,1\} , but it can't be 0 because the condition requires n m o d 1 < n m o d 2 n \bmod 1 < n \bmod 2 , so n m o d 2 = 1 n \bmod 2 = 1 .

n m o d 3 { 0 , 1 , 2 } n \bmod 3 \in \{0,1,2\} , but again, the condition leaves only 2, so n m o d 3 = 2 n \bmod 3 = 2 .

Following the same logic, we can deduce n m o d b = b 1 n + 1 m o d b = 0 n \bmod b = b-1 \Leftrightarrow n+1 \bmod b = 0 up to b = 9 b=9 . So, let's find out the smallest n + 1 n+1 . Since it leaves a remainder of 0 under division by 1 , 2 , 3 , , 9 1,2,3,\ldots,9 , it has to be the least common multiple of these numbers, which is 2 3 3 2 5 1 7 1 = 2520 2^3 \cdot 3^2 \cdot 5^1 \cdot 7^1 = 2520 and therefore n = 2519 n = \boxed{2519} .

Nice! I found the solution the hard way, although it helped to review Chinese remainder theorem, with non-coprime modulos.

A Former Brilliant Member - 2 years, 5 months ago
Alapan Das
Mar 26, 2019

Let us start with 1 1 . We know n n mod 1 = 0 1=0 . Now the remainder when n is divided by 2 2 must be 1 1 . As n n mod b < n b< n mod ( b + 1 ) (b+1) and remainder when n n is divided by 2 2 is at most 1 1 . Thus, the sequence of the remainders when n is divided by 1 , 2 , . . . . . , 8 , 9 1,2,.....,8,9 is respectively 0 , 1 , . . . . . 8 0,1,.....8 . Hence, we can write n = p b + b 1 n=p*b+b-1 . Or, b n + 1 b|n+1 . So, the minimum n+1 is the L C M ( 1 , 2....9 ) = 2520 LCM (1,2....9)=2520 . So, the minimum n = 2519 n=2519 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...