Integers x and y are such that x y + 1 is divisible by 24.
Is x + y also divisible by 24?
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.
X, y = 2,3 That satisfies divisibility but 2+3=5 is not divisible by 24
Am I doing something wrong?
Log in to reply
I suspect that you are reading the first formula as the digit x followed by the digit y (that is 10x + y). It's not. xy is x multiplied by y.
Log in to reply
How about -5 and 5. XY + 1 = -24, which is divisible by 24, but X+y=0 is not?
Log in to reply
@Sven Witteveen – 0 ÷ 2 4 = 0 . The result is an integer, so 0 is divisible by 24.
In fact, 0 is divisible by every integer except for 0.
Log in to reply
@Andrew Hayes – Shit, I spend a lot of time on that :'D
Can one decompose xy + 1 = 0 (mod 24) even further than xy + 1 = 0 (mod 8) and xy + 1 = 0 (mod 3)? In this way : If xy + 1 = 0 (mod 8), then xy + 1 = 0 (mod 4) and xy + 1 = 0 (mod 2)? If yes, can xy + 1 = 0 (mod 4) be decomposed in xy + 1 = 0 (mod 2) and xy + 1 = 0 (mod 2) as well?
Log in to reply
You ultimately need to satisfy the congruence for mod 8, even if you look at mod 2 or mod 4 first. Personal opinion: decomposing into lower powers of 2 won't help you that much. It can help you narrow down possibilities for higher power congruences, but 8 is a low enough number that you're just giving yourself more work by doing it that way.
X=7, Y= -7. XY+1=-48, divisible by 24. X+Y=0. Not divisible by 24. Question did not specify positive intergers.
sorry for posting here, i did not found how to post a solution on the problem itself the solution should be sometimes, because of the wording 1) x and y are integers 2) (x*y+1)mod24=0 3)is (x+y)mod24=0? the answer is: not for every x and y example: x=1 y=47 it fullfill 1 and 2 but not 3
Log in to reply
If x = 1 and y = 4 7 , then:
the multiple of 24 is always even. that means xy is a odd number. so, x and y both are odd number. because product of two odd number is always odd. that means x+y is always even. that means x+y is divisible by 24. how about this solution?
Log in to reply
Hey i also did it exactly the same way using parity of integers and i think its more elegent to solve the problem using basic priciples ,if possible,rather than hifi mathematical tools
Log in to reply
Unfortunately, Ridoy's solution only proves that x + y is even, not that it is divisible by 24. But -- it is a good start to think of things in terms of parity!
If x y + 1 is a multiple of 24, then x y ≡ − 1 mod 24.
Therefore x , y belong to the multiplicative group modulo 24, { ± 1 , ± 5 , ± 7 , ± 1 1 } .
It is easily verified that for any element z in this group, z 2 ≡ 1 .
Therefore x y ≡ − 1 implies x ≡ − 1 / y ≡ − y and x + y ≡ 0 .
Note that we can write z = 6 a ± 1 . Then z 2 ≡ 3 6 a 2 ± 1 2 a + 1 = 1 2 ( 3 a ± 1 ) a + 1 , and since either a is even or 3 a ± 1 is even, 1 2 ( 3 a + 1 ) a is a multiple of 24. This proves that z 2 ≡ 1 mod 24.
Since x y + 1 is divisible by 2 4 , x y + 1 = 2 4 n for some integer n , and y = x 2 4 n − 1 . From this we know that in order for y to be an integer, x cannot be multiple of 2 or 3 .
Since y = x 2 4 n − 1 , x + y = x + x 2 4 n − 1 = x x 2 − 1 + 2 4 n . Then for each x ≡ a ( m o d 2 4 ) for a is not a multiple of 2 or 3 and 0 < a < 2 4 , x + y ≡ 0 ( m o d 2 4 ) . (For a = 1 , 1 2 − 1 = 0 ≡ 0 ( m o d 2 4 ) , for a = 5 , 5 2 − 1 = 2 4 ≡ 0 ( m o d 2 4 ) ; for a = 7 , 7 2 − 1 = 4 8 ≡ 0 ( m o d 2 4 ) ; for a = 1 1 , 1 1 2 − 1 = 1 2 0 ≡ 0 ( m o d 2 4 ) ; for a = 1 3 , 1 3 2 − 1 = 1 6 8 ≡ 0 ( m o d 2 4 ) ; for a = 1 7 , 1 7 2 − 1 = 2 8 8 ≡ 0 ( m o d 2 4 ) ; for a = 1 9 , 1 9 2 − 1 = 3 6 0 ≡ 0 ( m o d 2 4 ) ; for a = 2 3 , 2 3 2 − 1 = 5 2 8 ≡ 0 ( m o d 2 4 ) .)
Therefore, x + y must also be divisible by 2 4 .
Let's drop an intuitive solution rather than a mathematical proof. In this question, we only care about the multiplication table for 24. Let's list it out! [0, 24, 48, 72, 96, 120...]
In that table, the only solution for which X and Y can be integers (in xy + 1 = 0 (mod24)) must necessarily have a unit digit of 6.
The reason for this is that for xy + 1 = [0, 24, 48, 72, and 120], no integer solution can be found for xy + 1.
It's simple to show that for xy+1 = 96, the only possible solution is (x,y) = (19,5).
19 + 5 = 24. Woah!
This also follows for 216, and for every other multiple of 24 that has a unit integer of 6. Since the multiples of 24 with a unit integer 6 is the only set of answers that have integer solutions for (x,y), the answer is necessarily Yes, Always.
WRONG!!!: x,y=(17,7) then x y+1=17 7+1 = 119+1=120, and 120 mod 24= 0. Then x+y = 17+7=24. 24 mod 24 = 0. Therefore, your supposedly not possible solution of xy+1=120 actually works, although you're correct in that xy+1=[0,24,48,72] are not possible solutions. Of course, there are additional solutions to xy+1= 0 mod 24, including x,y=[(13,11)].
xy+1=24 xy=23 x=1,23 y=23,1 x+y=24 24 is divisible by 24 and everything stems of off xy=23.
if xy + 1 is congruent to 0 mod 24 then x.y is congruent to -1 mod 24
that means that x is congruent to 1 mod 24 and y is congruent to -1 mod 24
that means that x = 24k+1 and y = 24k-1
which gives us: x + y = 2. 24k which is divisible always by 24
The claim 'that means that x is congruent to 1 mod 24 and y is congruent to -1 mod 24' is not correct. Counterexample: x=5 and y=19. Then xy = 95 = -1 mod 24.
The way your argument is presented would also hold for other numbers than 24. But 24 is very special. The property of this problem holds for very few numbers (24 being the largest).
If x y + 1 ≡ 0 ( m o d 2 4 ) , then x y ≡ − 1 ( m o d 2 4 ) ≡ 2 3 ( m o d 2 4 ) .
If a 1 ≡ b 1 ( m o d n ) and a 2 ≡ b 2 ( m o d n ) , then a 1 a 2 ≡ b 1 b 2 ( m o d n ) (compatibility with multiplication)
Because 23 is a prime, the only possible combination of 23 is 2 3 × 1 .
i.e. x y ≡ 2 3 × 1 ( m o d 2 4 ) .
Therefore, x + y ≡ 2 3 + 1 ( m o d 2 4 ) ≡ 2 4 ( m o d 2 4 ) ≡ 0 ( m o d 2 4 ) .
This is what I thought...seems way simpler than the other solutions posted here. Maybe we are missing something though?
Log in to reply
Sadly it turns out that since we're working with mods, we can't assume x ≡ 1 and y ≡ 2 3 ( m o d 2 4 ) directly. 2 3 ( m o d 2 4 ) can be expressed in other ways, such as 5 ⋅ 1 9 .
However, we could do casework on each of the cases: 5 ⋅ 1 9 , 7 ⋅ 1 7 , 1 1 ⋅ 1 3 .
We have xy=-1 mod 24. This means x and y are odd. Also, this equation means that x and y are not divisible by 3 as xy+1 is. Then we add y^2 on both sides, i.e. y(x+y) = y^2 - 1 = (y+1)(y-1) mod 24. If (y+1)(y-1)=0 mod 24 then x+y=0 mod 24 as y is not. It suffices to show that (y+1)(y-1) is divisible 3 times by 2 and 1 time by 3. It is easily seen that, as y is odd, either y-1 or y+1 is divisible by 4 and the other is divisible by 2 only. This makes it for the "3 times by 2". Finally, one of the element of the triplet (y-1,y,y+1) should be divisible by 3. As y is not, one of y-1 or y+1 is.
If 2 4 ∣ x y + 1 , this means that x y ≡ 2 3 m o d 2 4 . Because 2 3 is a prime, x , y have to be 1 , 2 3 in any order. The sum of 1 and 2 3 is 2 4 , and thus the answer is TRUE
Given that (x+1)(y+1) = (xy+1) + (x+y), if we can show that (x+1)(y+1) is a multiple of 24, then so is x+y.
xy = 2 (mod 3) so either x=1 and y=2 or x=2 and y=1 (all mod 3); no other product will give 2 Hence either x+1 or y+1 = 0 (mod 3)
xy = 3 (mod 4) so either x=1 and y=3 or x=3 and y=1 (all mod 4); no other product will give 3 Hence either x+1=2 and y+1=0 or vice versa. In other words, one of x+1 and y+1 is an even number and the other is a multiple of 4.
The product (x+1)(y+1) therefore includes a multiple of 3, an even number and a multiple of 4. Hence it is divisible by 24. Hence x+y = (x+1)(y+1) - (xy+1) is also divisible by 24.
24|xy+1 Then, xy=24k-1 Or xy=24k+23[I am here just discussing about the form] As product of two integers is off the form 24k+23 then either one of the integers is of the form 24k+23 and the other 24k+1 Which implies x+y =24k Thus x+y is divisible by 24
xy+1=24 xy=23 Factors of 23: 1,23 So x+y=24, thus x+y is always divisible by 24
Consider the following properties
Call a pair x,y "valid" if it observes both 1 and 2, and "suitable" if it observes 1. We must prove that every suitable pair is valid.
Notice that, if x,y is suitable, then neither x nor y can have a common divisor with 24 (other than 1), that is, neither of them can be a multiple of 2 or 3. Otherwise, the product of x and y will always be at a multiple of three or two from the next multiple of 24, implying that xy+1 is not equal to 24.
Note that, if x,y is a valid (or suitable) pair, then (x+24),y is also valid (or suitable), since (x+24)y+1=xy+1+24y and (x+24)+y=x+y+24. Analogously, (x-24),y is also a valid (or suitable) pair. Therefore, if every suitable pair x,y with |x|,|y| < 24 is valid, then every suitable pair is valid. Furthermore, if x>-24 is negative, then x+24 is positive, implying that, if every suitable pair x,y with 0<x,y<24 is valid, then every suitable pair is valid. It therefore suffices to prove that every suitable pair x,y with 0<x,y<24 is valid.
Furthermore, let v,w,x be three distinct integers 0<v,w,x<24. We claim that, if v,w is a suitable pair, then v,x is not. Suppose otherwise: if vx were a suitable pair, then vx=vw+24j for some non-zero integer j, implying that either v has a common divisor with 24 (other than 1), or x=w+24n for some integer n, both leading to a contradiction. Therefore, for every positive integer x<24, there is at most one other positive integer y<24 such that x,y is a suitable pair.
The possible values of 0<x<24 for there to be a 0<y<24 such that x,y are a suitable pair are the following: 23,19,17,13,11,7,5,1, all odd numbers between 1 and 24 that are not multiples of 3.
Every other possible value of x has the same suitable pair as those first four.
Therefore, every suitable pair is valid, q.e.d.
If xy = -1 (mod 24), then neither x nor y is divisible by 2 or 3. Then the only possibilities for x are 1, 5, 7, 11, -11, -7, -5, -1. It can be easily verified that the only y-pairings at x=1, 5, 7, or 11 are -1, -5, -7, and -11, respectively. Then x+y = 0 always.
Here's a proof that it AT LEAST sometimes works, but it's not a rigorus proof for the "Yes, always" option.
I observed that if x = 1 and y = 2 4 n − 1 , then x y + 1 = 1 ⋅ ( 2 4 n − 1 ) + 1 = 2 4 n − 1 + 1 = 2 4 n , and x + y = 1 + ( 2 4 n − 1 ) = 2 4 n + 1 − 1 = 2 4 n .
This means that for all values of 2 4 n , you can always write it as x y + 1 = x + y = 2 4 n , but i only proved that for x = 1 and y = 2 4 n − 1 and not the other ways of factoring 2 4 n − 1 . My solution only works for when 2 4 n − 1 is a prime number and for only a single case of when it's a composite number.
An example of x y + 1 = 2 4 a and x + y = 2 4 b where x and y is not 1 and 2 4 n − 1 is x = 7 and y = 1 7 . This one works out too, as 7 + 1 7 = 2 4 and 7 ⋅ 1 7 + 1 = 1 2 0 = 2 4 ⋅ 5 .
x+y = (x+1)*(y+1) - (xy+1), so it is enough to prove 24 divides (x+1)(y+1)
xy = k*24-1, so
xy mod 3 = 2, so (x,y)=(1,2) mod 3
xy mod 4 = 3, so (x,y)=(1,3) mod 4
so (x+1)(y+1) = (2)mod4 * (0) mod 4 = multiple of 8
and (x+1)(y+1) = (2)mod3 * (0)mod 3 = multiple of 3
q.e.d
Because
x
2
≡
1
(
m
o
d
3
,
8
)
( for x, y ( coprime with 24) )
( ∵ for odd number
x
=
2
k
+
1
:
x
2
=
4
k
2
+
4
k
+
1
=
4
k
(
k
+
1
)
+
1
≡
1
(
m
o
d
8
)
,
x
=
3
k
±
1
:
x
2
≡
1
(
m
o
d
3
)
)
If x y ≡ − 1 ≡ − x 2 ( m o d 3 , 8 ) , x + y ≡ 0 ( m o d 3 , 8 )
∴ x+y is divisible by 24
Problem Loading...
Note Loading...
Set Loading...
If x y + 1 ≡ 0 ( m o d 2 4 ) , then x y + 1 ≡ 0 ( m o d 8 ) and x y + 1 ≡ 0 ( m o d 3 ) .
If x y + 1 ≡ 0 ( m o d 8 ) , then one of these must be true:
⎩ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎧ ( x , y ) ( x , y ) ( x , y ) ( x , y ) ≡ ( 1 , 7 ) ( m o d 8 ) ≡ ( 7 , 1 ) ( m o d 8 ) ≡ ( 3 , 5 ) ( m o d 8 ) ≡ ( 5 , 3 ) ( m o d 8 )
In any of these cases, x + y ≡ 0 ( m o d 8 ) .
Similarly, if x y + 1 ≡ 0 ( m o d 3 ) , then one of these must be true:
{ ( x , y ) ( x , y ) ≡ ( 1 , 2 ) ( m o d 3 ) ≡ ( 2 , 1 ) ( m o d 3 )
In either of these cases, x + y ≡ 0 ( m o d 3 ) .
We've shown that if x y + 1 ≡ 0 ( m o d 2 4 ) , then x + y ≡ 0 ( m o d 8 ) and x + y ≡ 0 ( m o d 3 ) . It follows that x + y ≡ 0 ( m o d 2 4 ) .