S is the sum of all possible positive integers n such that n 3 + n 2 + n + 1 1 0 n is an integer, what is the remainder when S is divided by 10?
If
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.
In subcase 4.1 the equation should have -x, not -2x.
Log in to reply
Oh, that's right! I'm going to fix it right away. Thanks for noticing!
Under subcase 4.1, shouldn't the equation be x 2 − 2 x + ( 2 − 2 y ) = 0 ? This would give us x = 2 4 ± 8 y − 4 instead.
Also, I'm not sure how b = 0 → y = 4 . Shouldn't it be b = 0 , y = 5 0 = 1 ?
Log in to reply
I saw that I did everything wrong from that point on, and I'm working on redoing that part. I'm almost done, but the workaround is huge...
@Calvin Lin , @Eilon Lavi , I believe I've corrected my proof in its entirety. Can you guys help me verify that it's all ok now?
Log in to reply
it seems to me that you want to show that if z > 7 is not a solution, then z + 4 is not a solution. However, all that you have shown is that both z and z + 4 cannot be solutions at the same time.
For example, it's possible to have case where 13 is not a solution, but 17 is a solution.
Log in to reply
Well, the outline of my proof is as follows:
Suppose z > 7 ;
Suppose z is a solution, and furthermore, that z + 4 is a solution;
I use the fact that both of these numbers are solutions when I subtract one equation from the other;
From this, I derive that z must be equal to three, which contradicts the initial assumption;
So this doesn't allow me to reach the conclusion that say, for example, that if 1 3 is not a solution (which it isn't, for it'd make 5 b = 8 5 ) then 1 7 isn't a solution as well (which isn't either, for it'd make 5 b = 1 4 5 )?
Log in to reply
@Alexandre Miquilino – RIght, because you needed the assumption of "suppose z is a solution and furthermore z+4 is a solution" This is not satisfied for z = 13.
Log in to reply
@Calvin Lin – Oh, I get it... damn. Do you think you could give me a hint of sorts as to how I could prove that lemma in my solution?
Log in to reply
@Alexandre Miquilino – I suspect that it is true, but do not know of a simple (or even, any) proof of that.
Log in to reply
@Calvin Lin – Oh, bummer. I was pretty sure I was onto something there. It must be something along those lines... I'll try working on it the next few days, see if I can come up with anything.
Please explain your solution's first line in which starts with "checking "
Problem Loading...
Note Loading...
Set Loading...
Warning: Gigantic solution ahead.
Well, in order for us to have n 3 + n 2 + n + 1 ∣ 1 0 n , n 3 + n 2 + n + 1 must be of the form 2 a 5 b , a and b being non-negative integers.
Let's consider two main cases:
Case I : a = 0 , b = 0
This gives us: n 3 + n 2 + n + 1 = 1 , or n 3 + n 2 + n = 0 ; the only real solution for this equation is n = 0, which doesn't suit our purposes.
Case I I : At least one of a , b is different from 0.
Now, we must consider a few subcases for the values of n itself. Notice that, for all a > 0 , the values of x such that 2 a ≡ x ( m o d 1 0 ) cycle through the set 2 , 4 , 8 , 6 in this particular order; also, for all b > 0 , 5 b ≡ 5 ( m o d 1 0 ) .
Further observation tells us that 2 a 5 b ≡ 0 ( m o d 1 0 ) when both a and b are greater than 0 at the same time, and thus 2 a 5 b can only be non-congruent to 0 ( m o d 1 0 ) iff one of them is 0 ; thus, the set of possible congruences modulo 1 0 for n 3 + n 2 + n + 1 is ( 0 , 2 , 4 , 5 , 6 , 8 ) .
Then, let's observe what happens to n 3 + n 2 + n + 1 when we cycle for all possible values of z such that 0 ≤ z ≤ 9 and n ≡ z ( m o d 1 0 ) .
n ≡ 0 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 1 ( m o d 1 0 )
n ≡ 1 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 4 ( m o d 1 0 )
n ≡ 2 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 5 ( m o d 1 0 )
n ≡ 3 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 0 ( m o d 1 0 )
n ≡ 4 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 5 ( m o d 1 0 )
n ≡ 5 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 6 ( m o d 1 0 )
n ≡ 6 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 9 ( m o d 1 0 )
n ≡ 7 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 0 ( m o d 1 0 )
n ≡ 8 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 5 ( m o d 1 0 )
n ≡ 9 ( m o d 1 0 ) → n 3 + n 2 + n + 1 ≡ 0 ( m o d 1 0 )
From this we derive that n cannot be congruent to either 0 or 6 when divided by 1 0 ; this is the same as stating that the last digit of n cannot be 0 or 6 . Also, we can narrow the set of possible congruences modulo 1 0 for n 3 + n 2 + n + 1 down to ( 0 , 4 , 5 , 6 ) .
The first case work is done; we move into a new case analysis.
Case 1 : n 3 + n 2 + n + 1 ≡ 4 ( m o d 1 0 )
What this means is that n 3 + n 2 + n + 1 is a number of the form 2 a such that a ≡ 2 ( m o d 4 ) .
Thus, we have: ( n + 1 ) ( n 2 + 1 ) = 2 a . We've ruled out the possibility n = 1 back at case I ; besides, we must have:
{ n + 1 = 2 a 1 n 2 + 1 = 2 a 2
Since n 2 + 1 is a power of two, as well as n + 1 , and since n 2 + 1 > n + 1 for all n > 1 , then n + 1 ∣ n 2 + 1 .
Performing the polynomial division yields: n 2 + 1 = ( n + 1 ) ∗ ( n − 1 ) + 2 ; thus, n + 1 must divide 2 so that n + 1 ∣ n 2 + 1 . This could only happen if either n = 0 or n = 1 ; both possibilities have been ruled out, and thus no numbers fit this case.
Case 2 : n 3 + n 2 + n + 1 ≡ 6 ( m o d 1 0 )
Like the previous case, n 3 + n 2 + n + 1 is a number of the form 2 a such that a ≡ 0 ( m o d 4 ) . By reasoning similar to the previous case, we'd arrive at the same result, which is that no numbers fit this case.
Case 3 : n 3 + n 2 + n + 1 ≡ 5 ( m o d 1 0 )
This time, n 3 + n 2 + n + 1 is a number of the form 5 b ; however, by reasonings similar to the previous cases, we'd arrive once more at the same result.
Case 4 : n 3 + n 2 + n + 1 ≡ 0 ( m o d 1 0 )
Finally, the last case. Not only this means that n 3 + n 2 + n + 1 is a number of the form 2 a 5 b , but also that either n ≡ 3 ( m o d 1 0 ) , n ≡ 7 ( m o d 1 0 ) , or n ≡ 9 ( m o d 1 0 ) .
( n + 1 ) ∗ ( n 2 + 1 ) = 2 a 5 b
Subcase 4 . 1 : n ≡ 3 ( m o d 1 0 )
This means that n + 1 ≡ 4 ( m o d 1 0 ) , and n 2 + 1 ≡ 0 ( m o d 1 0 ) ; thus, n + 1 is a power of two and n 2 + 1 is the product of a power of two by 5 b .
{ n + 1 = 2 a 1 n 2 + 1 = 2 a 2 5 b
Thus: ( 2 a 1 − 1 ) 2 + 1 = 2 a 2 5 b
2 2 a 1 − 2 a 1 + 1 + 2 = 2 a 2 5 b
2 ∗ ( 2 2 a 1 − 1 − 2 a 1 + 1 ) = 2 a 2 5 b
Since a 1 > 1 (Otherwise we'd have n = 0 or n = 1 ), we can write:
{ 2 a 2 = 2 2 2 a 1 − 1 − 2 a 1 + 1 = 5 b
Thus, a 2 = 1 . As for the other equation, let 2 a 1 = x and 5 b = y .
We have: 2 x 2 − x + 1 = y → x 2 − 2 x + 2 ( 1 − y ) = 0 .
Solving for x : x = 1 ± 2 y − 1
Now, 2 y − 1 must be a square number; this means 2 ∗ 5 b − 1 = z 2
The only non-negative integer solutions ( b , z ) for this equation are: ( 0 , 1 ) , ( 1 , 3 ) and ( 2 , 7 ) . To see why this holds, let's examine this lemma:
Lemma I : The only pairs ( b , z ) of integer solutions for 2 ∗ 5 b − 1 = z 2 are ( 0 , 1 ) , ( 1 , 3 ) and ( 2 , 7 ) .
To prove this, first note that, since 5 b is odd for all integers b , then so is 2 ∗ 5 b − 1 . This implies that z 2 is odd, which means that z must be odd as well. Now, if there are two solutions ( b 1 , z 1 ) and ( b 2 , z 2 ) , with b 1 = b 2 (which imply in z 1 = z 2 due to the fact that the exponential function is injective), then the difference between z 1 and z 2 is even; in other words, z 2 − z 1 = 2 p .
Now, notice that for z = 5 , there are no solutions for b . Now, I'll prove that if any odd value of z > 7 is not a solution, then neither z + 4 can produce a solution; this will eventually assure that we'll cover all of the odd integers.
Firstly, let's assume that there is a value z 1 > 7 such that there is a corresponding b 1 , and also that there is a second value, z 2 , such that z 2 = z 1 + 4 and there is a value b 2 ;
Thus:
{ 2 ∗ 5 b 1 − 1 = z 1 2 2 ∗ 5 b 2 − 1 = z 2 2
Now, subtracting the first equation from the second, and using the fact that z 2 = z 1 + 4 , we have:
2 ∗ ( 5 b 2 − 5 b 1 ) = 8 ∗ ( z 1 + 2 )
5 b 1 ∗ ( 5 b 2 − b 1 − 1 ) = 4 ∗ ( z 1 + 2 )
Now, since z 1 is odd, so is z 1 + 2 ; also, on the LHS the only odd factor is 5 b 1 ; then, we can conclude that 5 b 1 = z 1 + 2 .
What this means is that: 2 ∗ ( z 1 + 2 ) − 1 = z 1 2 ; from here:
z 1 2 − 2 z 1 − 3 = 0 .
The only positive solution for z 1 is z 1 = 3 ; however, this contradicts our earlier assumption that z 1 > 7 ; thus, by contradiction, if z 1 is not a solution of the equation, neither z 1 + 4 will be. Note that z = 9 does not produce a solution (we'd have 5 b = 4 1 ), and neither does z = 1 1 (we'd have 5 b = 6 0 ). Then, we get all of the odd integers covered, meaning that our lemma is valid; thus, the only solution is given by b = 1 and z = 3 ( b = 0 produces the solution n = 1 , which is not valid, and b = 2 produces the only solution for the next subcase, as you will see).
Finally, verifying that n = 3 gives us a solution: 3 3 + 3 2 + 3 + 1 1 0 3 = 4 0 1 0 0 0 = 2 5 .
Subcase 4 . 2 : n ≡ 7 ( m o d 1 0 )
This means that n + 1 ≡ 8 ( m o d 1 0 ) , and n 2 + 1 ≡ 0 ( m o d 1 0 ) ; thus, n + 1 is a power of two and n 2 + 1 is the product of a power of two by 5 b .
By the reasoning shown in the previous subcase, we arrive at the fact that the only solution is n = 7 ; verifying: 7 3 + 7 2 + 7 + 1 1 0 7 = 4 0 0 1 0 7 = 2 5 0 0 0 .
Subcase 4 . 3 : n ≡ 9 ( m o d 1 0 ) This means that n + 1 ≡ 0 ( m o d 1 0 ) , and n 2 + 1 ≡ 2 ( m o d 1 0 ) ; thus, n 2 + 1 is a power of two and n + 1 is the product of a power of two by 5 b .
{ n + 1 = 2 a 1 5 b n 2 + 1 = 2 a 2
n = 2 a 1 5 b − 1 → ( 2 a 1 5 b − 1 ) 2 + 1 = 2 a 2
2 2 a 1 5 2 b − 2 a 1 + 1 5 b + 2 = 2 a 2
{ 2 a 2 = 2 2 2 a 1 − 1 5 2 b − 2 a 1 5 b + 1 = 1
This means that a 2 = 1 , and thus n 2 = 1 → n = 1 , which we've proven is not a valid solution, and therefore no solutions exist here.
Thus, the only valid numbers that are answers to this problem are 3 and 7 ; their sum is 1 0 , which leaves a remainder of 0 when divided by 1 0 , and this is the solution sought.