Let S be the set of all natural numbers k such that k ( k + 1 ) ≡ 6 0 ( m o d 7 2 ) and let S 7 2 be the set of all elements of S modulo 72 (so, if k ∈ S , then a ∈ S 7 2 iff a < 7 2 and k ≡ a ( m o d 7 2 ) ). Find the sum of all elements of S 7 2 .
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.
Great solution! Much better than mine. I wish I had seen this "trick" before. I used to do math Olympiads on my country, but my number theory "tricks" faded away.
Great factorisation.
I used Chinese Remainder and hoped for small number of solutions, luckily that is the case.
Dude you are adding numbers modulo 72 and the answer should be 70.
The first step is to solve the modular equation k ( k + 1 ) ≡ 6 0 ( m o d 7 2 ) . We can restate this equation as k ( k + 1 ) = 7 2 n + 6 0 . It's clear that 1 2 ∣ k ( k + 1 ) , because the RHS is divisible by 12. So, we can use a brute force approach to find all "valid" values of k : k k ( k + 1 ) mod 12 0 0 1 2 2 6 3 0 4 8 5 6 6 6 7 8 8 0 9 6 1 0 2 1 1 0
So, we have four cases: k = 1 2 a , k = 1 2 a + 3 , k = 1 2 a + 8 , k = 1 2 a + 1 1
For the first case, we have 1 2 a ( 1 2 a + 1 ) = 7 2 n + 6 0 . Simplifying it, we have 1 2 a 2 + a = 6 n + 5 ⇒ 1 2 a 2 − 6 n = 5 − a . Since the LHS is divisible by 6, we have 6 ∣ 5 − a , from which we deduce that a = 6 x + 5 . To prove that all a is a solution, we can substitute it on the first equation: 4 3 2 x 2 + 7 2 0 x + 3 0 0 − 6 n = − 6 x ⇒ 6 n = 4 3 2 x 2 + 7 2 6 x + 3 0 0 ⇒ n = 7 2 x 2 + 1 2 1 x + 5 0 . So, as a = 6 x + 5 , we have k = 7 2 x + 6 0
For the second case, we have ( 1 2 a + 3 ) ( 1 2 a + 4 ) = 7 2 n + 6 0 ⇒ 1 4 4 a 2 + 8 4 a + 1 2 = 7 2 n + 6 0 ⇒ 1 2 a 2 + 7 a + 1 = 6 n + 5 ⇒ 1 2 a 2 − 6 n = 4 − 7 a . As for the first case, 6 ∣ 4 − 7 a , from which a = 6 x + 4 . Substituting, we have 4 3 2 x 2 + 5 7 6 x + 1 9 2 − 6 n = − 4 2 x − 2 4 ⇒ 6 n = 4 3 2 x 2 + 6 1 8 x + 2 1 6 ⇒ n = 7 2 x 2 + 1 0 3 x + 3 6 . As a = 6 x + 4 , we have k = 1 2 ( 6 x + 4 ) + 3 = 7 2 x + 5 1 .
For the third case, ( 1 2 a + 8 ) ( 1 2 a + 9 ) = 7 2 n + 6 0 ⇒ 1 4 4 a 2 + 2 0 4 a + 7 2 = 7 2 n + 6 0 ⇒ 1 2 a 2 + 1 7 a + 6 = 6 n + 5 ⇒ 1 2 a 2 − 6 n = − 1 7 a − 1 . We have 6 ∣ 1 7 a + 1 , from which a = 6 x + 1 . Substituting, 4 3 2 x 2 + 1 4 4 x + 1 2 − 6 n = − 1 0 2 x − 1 8 ⇒ 6 n = 4 3 2 x 2 + 2 4 6 x + 3 0 ⇒ n = 7 2 x 2 + 4 1 x + 5 . As a = 6 x + 1 , we have k = 1 2 ( 6 x + 1 ) + 3 = 7 2 x + 2 0 .
Finally, for the fourth case, we have ( 1 2 a + 1 1 ) ( 1 2 a + 1 2 ) = 7 2 n + 6 0 . As for the first case, we can simplify this to ( 1 2 a + 1 1 ) ( a + 1 ) = 6 n + 5 ⇒ 1 2 a 2 + 2 3 a + 1 1 = 6 n + 5 ⇒ 1 2 a 2 − 6 n = − 2 3 a − 6 . So, 6 ∣ 2 3 a + 6 , from which a = 6 x . Substituting, 4 3 2 x 2 − 6 n = − 1 3 8 x − 6 ⇒ 6 n = 4 3 2 x 2 + 1 3 8 x + 6 ⇒ n = 7 2 x 2 + 2 3 x + 1 . As a = 6 x , we have k = 7 2 x + 1 1 .
So, we find that all k that satisfy the modular equation k ( k + 1 ) ≡ 6 0 ( m o d 7 2 ) belongs to one of the families 7 2 x + 1 1 , 7 2 x + 2 0 , 7 2 x + 5 1 , 7 2 x + 6 0 for all x ∈ Z . Since S 7 2 has these numbers modulo 72, we state that S 7 2 = { 1 1 , 2 0 , 5 1 , 6 0 } . So, the sum of the elements is 1 1 + 2 0 + 5 1 + 6 0 = 1 4 2 .
good explanation
Or it is easier to solve k (k+1) is 4 mod 8 and 6 mod 9 individually.
Log in to reply
Post your solution this way. I'd like to know!
Log in to reply
I posted a solution using modular arithmetic without any brute forcing.
I did all this and missed the k = 11 (mod 72) case.
And then i realized, its much easier to do this: perl -e 'foreach $i (0 .. 1000) { $j=($i*($i+1)) % 72; print "$i\t$j\n"; }' | awk -F$'\t' '{if ($2 == 60) {print $0} }'
:)
k ( k + 1 ) ≡ 6 0 m o d 7 2 so k ( k + 1 ) ≡ 6 0 m o d 8 and k ( k + 1 ) ≡ 6 0 m o d 9 . Now for solve k ( k + 1 ) ≡ 4 m o d 8 we use that k ≡ 0 m o d 8 , k + 1 ≡ 1 m o d 8 , so k ( k + 1 ) ≡ 0 m o d 8 k ≡ 1 m o d 8 , k + 1 ≡ 2 m o d 8 , so k ( k + 1 ) ≡ 2 m o d 8 k ≡ 2 m o d 8 , k + 1 ≡ 3 m o d 8 , so k ( k + 1 ) ≡ 6 m o d 8 k ≡ 3 m o d 8 , k + 1 ≡ 4 m o d 8 , so k ( k + 1 ) ≡ 4 m o d 8 k ≡ 4 m o d 8 , k + 1 ≡ 5 m o d 8 , so k ( k + 1 ) ≡ 4 m o d 8 k ≡ 5 m o d 8 , k + 1 ≡ 6 m o d 8 , so k ( k + 1 ) ≡ 6 m o d 8 k ≡ 6 m o d 8 , k + 1 ≡ 7 m o d 8 , so k ( k + 1 ) ≡ 2 m o d 8 k ≡ 7 m o d 8 , k + 1 ≡ 0 m o d 8 , so k ( k + 1 ) ≡ 0 m o d 8
Conclude that k ≡ 3 m o d 8 or k ≡ 4 m o d 8 . By other hand k 2 + k ≡ 6 m o d 9 4 k 2 + 4 k ≡ 2 4 m o d 9 ( 2 k + 1 ) 2 = 4 k 2 + 4 k + 1 ≡ 2 4 + 1 ≡ 7 m o d 9 But the residues of 9 that have cuadratic residues equal to 7 are 4 and 5. Now 2 k + 1 ≡ 4 m o d 9 so k ≡ 6 m o d 9 or 2 k + 1 ≡ 5 m o d 9 so k ≡ 2 m o d 9 .
By the Chinesse Residue Teorem we have that k ≡ 3 m o d 8 and k ≡ 2 m o d 9 implies k ≡ 1 1 m o d 7 2 k ≡ 3 m o d 8 and k ≡ 6 m o d 9 implies k ≡ 5 1 m o d 7 2 k ≡ 4 m o d 8 and k ≡ 2 m o d 9 implies k ≡ 2 0 m o d 7 2 k ≡ 4 m o d 8 and k ≡ 6 m o d 9 implies k ≡ 6 0 m o d 7 2
Finally the anwer is 1 1 + 2 0 + 5 1 + 6 0 = 1 4 2 .
Problem Loading...
Note Loading...
Set Loading...
You can rewrite the modular equation in a factored form.
k ( k + 1 ) − 6 0 − 7 2 ≡ 0 ( m o d 7 2 )
k 2 + k − 1 3 2 ≡ 0 ( m o d 7 2 )
( k + 1 2 ) ( k − 1 1 ) ≡ 0 ( m o d 7 2 )
k + 1 2 and k − 1 1 differ by 25, which isn't divisible by 2 nor 3 (the only prime factors of 72), so at most one of the factors could be divisible by 8, and this applies to 9 as well. Therefore, there are 2 ⋅ 2 = 4 cases to consider.
Case 1: k + 1 2 ≡ 0 ( m o d 8 ) and k + 1 2 ≡ 0 ( m o d 9 )
k + 1 2 ≡ 0 ( m o d 7 2 )
k ≡ 6 0 ( m o d 7 2 )
Case 2: k − 1 1 ≡ 0 ( m o d 8 ) and k − 1 1 ≡ 0 ( m o d 9 )
k − 1 1 ≡ 0 ( m o d 7 2 )
k ≡ 1 1 ( m o d 7 2 )
Case 3: k + 1 2 ≡ 0 ( m o d 8 ) and k − 1 1 ≡ 0 ( m o d 9 )
You can write them as:
k ≡ 4 ( m o d 8 ) and k ≡ 2 ( m o d 9 )
By CRT, there is only one value of k ( m o d 7 2 ) that satisfies this congruence, which is 2 0 . (This can be shown with simple algebra.)
Case 4: k − 1 1 ≡ 0 ( m o d 8 ) and k + 1 2 ≡ 0 ( m o d 9 )
You can write them as:
k ≡ 3 ( m o d 8 ) and k ≡ 6 ( m o d 9 )
Following the same reasoning as the previous case, the only value of k ( m o d 7 2 ) is 5 1 .
All 4 cases have different values ( m o d 7 2 ) so the answer is 6 0 + 1 1 + 2 0 + 5 1 = 1 4 2 .