Quick LCM Problem

A vendor has a certain amount of oranges, n n , that is less than 100.

One day, he decided to sell oranges in small bags of 2. However, there was 1 left over.

As a result, he decided to sell oranges in bags of 3. However, there was now 2 left over.

Exasperated, he decided to sell oranges in bags of 4. However, there was now 3 left over.

Angrily, he tried one more to time to sell oranges in bags of 5. Now, there were 4 left over.

How many oranges did he have?


The answer is 59.

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.

4 solutions

Ethan Song
Jun 21, 2018

Notice that the remainder is basically negative one for all the numbers.

Therefore, the smallest number that works is just the l c m ( 5 , 4 , 3 , 2 ) 1 lcm(5,4,3,2)-1 , or just 60 1 = 59 60-1=59 . Thus, any positive numbers that are equivalent to 59 ( m o d 60 ) 59 \pmod {60} work. However, we want a number less than 100, so our answer is 59. \boxed{59.}

Let n be the number of oranges. Then we have , \text{Let } n \text{ be the number of oranges. Then we have , } \\ n 1 (mod 2) n 1 0 (mod 2) n + 1 0 (mod 2) n 2 (mod 3) n 2 0 (mod 3) n + 1 0 (mod 3) n 3 (mod 4) n 3 0 (mod 4) n + 1 0 (mod 4) n 4 (mod 5) n 4 0 (mod 5) n + 1 0 (mod 5) n \equiv 1 \text{ (mod 2) } \implies n - 1 \equiv 0 \text{ (mod 2) } \implies n + 1 \equiv 0 \text{ (mod 2) } \\ n \equiv 2 \text{ (mod 3) } \implies n - 2 \equiv 0 \text{ (mod 3) } \implies n + 1 \equiv 0 \text{ (mod 3) } \\ n \equiv 3 \text{ (mod 4) } \implies n - 3 \equiv 0 \text{ (mod 4) } \implies n + 1 \equiv 0 \text{ (mod 4) } \\ n \equiv 4 \text{ (mod 5) } \implies n - 4 \equiv 0 \text{ (mod 5) } \implies n + 1 \equiv 0 \text{ (mod 5) } \\

So we have to find the number n + 1 which is multiple of 2 , 3 , 4 and 5 which are 60 , 120 , 180 , and so on But n + 1 should be 100 n + 1 = 60 n = 59 \text{ So we have to find the number } n+1 \text{ which is multiple of } 2 , 3 , 4 \text{ and } 5 \text{ which are } 60 , 120 , 180 , \cdots \text{ and so on } \\ \text{ But } n+1 \text{ should be } \leq 100 \\ \implies n+1 = 60 \\ \implies n=\boxed{59}

Chew-Seong Cheong
Jun 27, 2018

Relevant wiki: Chinese Remainder Theorem

We can solve the problem using Chinese remainder theorem. Let the number be n n .

n 1 (mod 2) n 2 a + 1 , where a is an integer. 2 a + 1 2 (mod 3) 2 a 1 (mod 3) a = 2 and n 2 × 3 b + 2 a + 1 = 6 b + 5 6 b + 5 3 (mod 4) 2 b 2 (mod 4) b = 1 and n 24 c + 6 b + 5 = 24 c + 11 24 c + 11 4 (mod 5) 4 c 3 (mod 5) c = 2 n 24 c + 11 59 \begin{aligned} n & \equiv 1 \text{ (mod 2)} & \small \color{#3D99F6} \implies n \equiv 2a+1 \text{, where }a \text{ is an integer.} \\ \implies 2a+1 & \equiv 2 \text{ (mod 3)} \\ 2a & \equiv 1 \text{ (mod 3)} & \small \color{#3D99F6} \implies a=2 \text{ and } n \equiv 2\times 3b + 2a+1 = 6b+5 \\ \implies 6b+5 & \equiv 3 \text{ (mod 4)} \\ 2b & \equiv 2 \text{ (mod 4)} & \small \color{#3D99F6} \implies b=1 \text{ and } n \equiv 24c + 6b + 5 = 24c+11 \\ \implies 24c+11 & \equiv 4 \text{ (mod 5)} \\ 4c & \equiv 3 \text{ (mod 5)} & \small \color{#3D99F6} \implies c=2 \\ \implies n & \equiv 24c + 11 \\ & \equiv \boxed{59} \end{aligned}

Vimay MarCisse
Jun 22, 2018

The first statement precise that we have an odd number of oranges.

With the last one we know that this number ends by 9 (indeed, any multiple of 5 ends by 5 or 0 but we know that the number is odd. Thus 5 + 4 = 9).

Then, the seconde statement tells us that a number < 100 (which ends by 9) - 2 is divible by 3. The only three possibles numbers are 29, 59 and 89.

Finally the last statement allows us to find the answer : 59.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...