Let a < b < c < d be four consecutive positive integers such that
Find the minimum value of a + b + c + d .
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.
Very clever indeed! (+1)
but how to get 2a-5?
A quick survey shows that the first two properties are satisfied by a = 2 0 + 3 5 k , the first three by a = 1 6 0 + 3 1 5 k , and all of them by 1 7 3 5 + 3 4 6 5 k . The answer is 6 9 4 6
sir ca you please tell how have you got the first three prooperties i.e a=160 +315k
Log in to reply
Sure!
Starting from a = 5 k , we are solving a congruency at each stage where we look for the smallest positive solution k . Since the numbers we are dealing with are small, we can do this by inspection. Now
b = a + 1 = 5 k + 1 ≡ 0 ( m o d 7 ) for k = 4 so that a = 5 × 4 = 2 0 is the smallest solution
c = a + 2 = 2 2 + 5 × 7 k ≡ 4 − k ≡ 0 ( m o d 9 ) for k = 4 so that a = 2 0 + 3 5 × 4 = 1 6 0 is the smallest solution.
d = a + 3 = 1 6 3 + 5 × 7 × 9 k ≡ 9 + 7 k ≡ 0 ( m o d 1 1 ) for k = 5 so a = 1 6 0 + 3 1 5 × 5 = 1 7 3 5
I hope this helps.
Log in to reply
sir can you please help me over the second and third step .. how have you tranformed c=a+2 = 22+5 7k congruent to 4-k and d= a+3 =163+5 7*9k congruent 9 +7k ..... sir please help me i am struggling on these transformation
Log in to reply
@Deepansh Jindal – 2 2 ≡ 4 ( m o d 9 ) just means that 2 2 − 4 = 1 8 is divisible by 9 . By the same tokenm 5 × 7 k = 3 5 k ≡ − k ( m o d 9 ) means that 3 6 k is divisible by 9 . Now see whether you can understand the other congruences!
Log in to reply
@Otto Bretscher – thanks a lot sir got it and a brilliant solution sir .... again thanks sir for your help
How did you came to the conclusion, that c = 22 + 35k ?
Log in to reply
@Konstantin Zeis – In the previous step we find that a = 2 0 is the smallest solution modulo 5 and modulo 7. We get the other solutions if we add multiples of 7 × 5 = 3 5 to 20. Thus c = a + 2 must be of the form 2 2 + 3 5 k .
I hope this makes sense.
Hi! My solution matches that of yours. But I wanted to know if there is any "extended " version of The Chinese Remainder Theorem that solves such congruences without trial and error. Thank you.
Log in to reply
I would not call it "trial and error": it's a systematic process. Look at the extra explanation I gave in my response to Deepansh Jindal.
At some point in each step, we need to find a modular inverse, for example, the inverse of 7 modulo 11 in the last step. For larger numbers you might want to use the Euclidean algorithm to perform this step. In our example you would find 1 = 7 × 8 − 5 × 1 1 , so that the inverse of 7 is 8 modulo 11.
Log in to reply
Mr. Bretscher, How did you figure out that the answer was 6946? I was able to follow your work up to that last step, where you determined the minimum value of d . However, then I tried to substitute each of those values into the expression a + (a + 1) + (a + 2) + (a + 3). The solution I got was 5741.
Log in to reply
@John Taylor – I find a = 1 7 3 5 and the sum is 1 7 3 5 + 1 7 3 6 + 1 7 3 7 + 1 7 3 8 = 6 9 4 6
Log in to reply
@Otto Bretscher – Thanks. Brain fart on my end. Also, can k can be set equal to 0? If so, why is this possible?
the problem asks us to find x such that
x ≡ 0 ( m o d 5 ) x ≡ − 1 ( m o d 7 ) x ≡ − 2 ( m o d 9 ) x ≡ − 3 ( m o d 1 1 )
as the bases (5,7,9,11) are pairwise coprime this problem becomes a direct application of CRT (Chinese Remainder Theorem) which states that x can be computed as
B = ∏ b a s e i = 3 4 6 5 x = ∑ i a i × b a s e i B × [ ( b a s e i B ) − 1 ] b a s e i
where [ y − 1 ] a is the modular multiplicative inverse of y mod a which is equal to y ϕ ( a ) − 1 % a
applying this we get x = 1735 and the answer is x + (x + 1) + (x + 2) + (x + 3) = 4*x + 6 = 6946
To get to small numbers as quickly as possible, I start with the last congruence, which yields d = 1 1 x . The other congruences reduce to a = 1 1 x − 3 ≡ x + 2 ≡ 0 mod 5 ; b = 1 1 x − 2 ≡ 4 x + 5 ≡ 0 mod 7 ∴ x + 3 ≡ 0 mod 7 ; c = 1 1 x − 1 ≡ 2 x − 1 ≡ 0 mod 9 ∴ x − 5 ≡ 0 mod 9 . Thus x = 9 y + 5 , and x + 2 = 9 y + 7 ≡ 4 y + 2 ≡ 0 ∴ y − 2 ≡ 0 mod 5 ; x + 3 = 9 y + 8 ≡ 2 y + 1 ≡ 0 ∴ y + 4 ≡ 0 mod 7 . From the last equation we have y ≡ 3 mod 7, and we write y = 7 z + 3 . Then y − 2 = 7 z + 1 ≡ 2 z + 1 ≡ 0 mod 5 , with the obvious smallest positive solution z = 2 . Thus y = 7 ⋅ 2 + 3 = 1 7 ; x = 9 ⋅ 1 7 + 5 = 1 5 8 ; d = 1 1 ⋅ 1 5 8 = 1 7 3 8 . The answer is 1 7 3 5 + 1 7 3 6 + 1 7 3 7 + 1 7 3 8 = 4 ⋅ 1 7 3 5 + 6 = 6 9 4 6 .
A small formula in EXCEL fulfills the purpose fast and comfortable...and the next task needn't wait long! ;-)
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Modular Arithmetic - Word Problems
We are told that a ≡ 0 ( m o d 5 ) , a ≡ − 1 ( m o d 7 ) , a ≡ − 2 ( m o d 9 ) , a ≡ − 3 ( m o d 1 1 ) .
Hence, 2 a − 5 ≡ 0 ( m o d 5 , 7 , 9 , 1 1 ) which gives us 2 a ≡ 5 ( m o d 3 4 6 5 ) and hence a ≡ 5 × 1 7 3 3 ≡ 1 7 3 5 ( m o d 3 4 6 5 ) .
Note: This works out nicely because I'm exploiting the arithmetic progression of the modulus. In general, it's not that nice and this one-step solution would unlikely work.