Brahmagupta has a basket full of eggs. When he takes the eggs out of the basket 2 at a time, there is 1 egg left over. When he takes them out 3 at a time, there are 2 eggs left over. Likewise, when he takes the eggs out 4, 5, and 6 at a time, he finds remainders of 3, 4, and 5, respectively. However, when he takes the eggs out 7 at a time, there are no eggs left over.
What is the least amount of eggs that could be in Brahmagupta's basket?
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.
I suppose that we could also note that ( x + 1 ) ∣ l c m ( 2 , 3 , 4 , 5 , 6 ) = 6 0 , and so we are looking for the least x = 5 9 + 6 0 n such that 7 ∣ x . Then
7 ∣ ( 5 9 + 6 0 n ) ⟹ 7 ∣ ( 3 + 4 n ) ⟹ n = 1 , x = 5 9 + 6 0 = 1 1 9 .
Log in to reply
That's pretty good! I will update my solution to reflect this.
How did you reduce the congruences to 4 congruences?
Log in to reply
If you have x ≡ 3 ( m o d 4 ) , then x ≡ 1 ( m o d 2 ) is redundant.
Likewise, if you have x ≡ 2 ( m o d 3 ) and x ≡ 3 ( m o d 4 ) , then x ≡ 5 ( m o d 6 ) is redundant.
Can you pls explain this? In 1st case, you have retained the larger number (mod 4) and eliminated its factor 2. Whereas in 2nd case, you have retained factors (mod 3), (mod 4) and eliminated (mod 6).
the other way is using the brute force ;
since we know that the number is odd because x = 1 ( m o d 2 ) .............. 1
we also know that x = 4 ( m o d 5 ) there for the number must have a last digit of 5 because it can't be zero since the number is odd .
using the fact that x = 4 ( m o d 5 )
we can write it as : 5 k + 4 ; where k belongs to { 1,3,5,7.....})
now feeding in the values we can find that for k = 9 = > 5 ( 9 ) + 4 = 1 1 9
checking 119 for all the values , we can see that it satisfies all the given conditions . so 119 is our answer .
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Chinese Remainder Theorem
This problem can be written as a system of linear congruences:
⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ x x x x x x ≡ 1 ( m o d 2 ) ≡ 2 ( m o d 3 ) ≡ 3 ( m o d 4 ) ≡ 4 ( m o d 5 ) ≡ 5 ( m o d 6 ) ≡ 0 ( m o d 7 ) .
This can be reduced to the equivalent system of congruences:
⎩ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎧ x x x x ≡ 2 ( m o d 3 ) ≡ 3 ( m o d 4 ) ≡ 4 ( m o d 5 ) ≡ 0 ( m o d 7 ) .
Updated per the reply of @Brian Charlesworth.
Note that the first three congruences can be rewritten:
⎩ ⎪ ⎨ ⎪ ⎧ x x x ≡ − 1 ( m o d 3 ) ≡ − 1 ( m o d 4 ) ≡ − 1 ( m o d 5 ) .
Since these constants are the same, a "shortcut" can be taken with the Chinese Remainder Theorem. The LCM of these moduli is 60, so
x ≡ − 1 ( m o d 6 0 ) ≡ 5 9 ( m o d 6 0 )
Write this congruence as an equation, and substitute the expression for x into the final congruence:
x 6 0 j + 5 9 j = 6 0 j + 5 9 ≡ 0 ( m o d 7 ) ≡ 1 ( m o d 7 )
Then write this congruence as an equation, and substitute it into the expression for x :
j x x x = 7 k + 1 = 6 0 ( 7 k + 1 ) + 5 9 = 4 2 0 k + 1 1 9 ≡ 1 1 9 ( m o d 4 2 0 )
Thus, the least amount of eggs that could be in Brahmagupta's basket is 1 1 9 .