x, y, 24?

Integers x x and y y are such that x y + 1 xy+1 is divisible by 24.

Is x + y x+y also divisible by 24?

Yes, always Sometimes No, never

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.

17 solutions

Andrew Hayes Staff
May 2, 2018

If x y + 1 0 ( m o d 24 ) , xy+1 \equiv 0 \pmod{24}, then x y + 1 0 ( m o d 8 ) xy+1 \equiv 0 \pmod{8} and x y + 1 0 ( m o d 3 ) . xy+1 \equiv 0 \pmod{3}.

If x y + 1 0 ( m o d 8 ) , xy+1 \equiv 0 \pmod{8}, then one of these must be true:

{ ( x , y ) ( 1 , 7 ) ( m o d 8 ) ( x , y ) ( 7 , 1 ) ( m o d 8 ) ( x , y ) ( 3 , 5 ) ( m o d 8 ) ( x , y ) ( 5 , 3 ) ( m o d 8 ) \begin{cases}\begin{aligned} (x,y) &\equiv (1,7) \pmod{8} \\ (x,y) &\equiv (7,1) \pmod{8} \\ (x,y) &\equiv (3,5) \pmod{8} \\ (x,y) &\equiv (5,3) \pmod{8} \end{aligned}\end{cases}

In any of these cases, x + y 0 ( m o d 8 ) . x+y \equiv 0 \pmod{8}.

Similarly, if x y + 1 0 ( m o d 3 ) , xy+1 \equiv 0 \pmod{3}, then one of these must be true:

{ ( x , y ) ( 1 , 2 ) ( m o d 3 ) ( x , y ) ( 2 , 1 ) ( m o d 3 ) \begin{cases}\begin{aligned} (x,y) &\equiv (1,2) \pmod{3} \\ (x,y) &\equiv (2,1) \pmod{3} \end{aligned}\end{cases}

In either of these cases, x + y 0 ( m o d 3 ) . x+y \equiv 0 \pmod{3}.

We've shown that if x y + 1 0 ( m o d 24 ) , xy+1\equiv 0 \pmod{24}, then x + y 0 ( m o d 8 ) x+y \equiv 0 \pmod{8} and x + y 0 ( m o d 3 ) . x+y \equiv 0 \pmod{3}. It follows that x + y 0 ( m o d 24 ) . x+y \equiv 0 \pmod{24}.

X, y = 2,3 That satisfies divisibility but 2+3=5 is not divisible by 24

Am I doing something wrong?

Arjoonn Sharma - 3 years, 1 month ago

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.

Richard Farrer - 3 years, 1 month ago

Log in to reply

How about -5 and 5. XY + 1 = -24, which is divisible by 24, but X+y=0 is not?

Sven Witteveen - 3 years, 1 month ago

Log in to reply

@Sven Witteveen 0 ÷ 24 = 0. 0 \div 24 = 0. The result is an integer, so 0 is divisible by 24.

In fact, 0 is divisible by every integer except for 0.

Andrew Hayes Staff - 3 years, 1 month ago

Log in to reply

@Andrew Hayes Shit, I spend a lot of time on that :'D

Sven Witteveen - 3 years, 1 month ago

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?

Jason Schoeters - 3 years, 1 month ago

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.

Andrew Hayes Staff - 3 years, 1 month ago

X=7, Y= -7. XY+1=-48, divisible by 24. X+Y=0. Not divisible by 24. Question did not specify positive intergers.

Dylan Pinnette - 3 years, 1 month ago

Log in to reply

0 is divisible by 24.

Andrew Hayes Staff - 3 years, 1 month ago

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

Genaro Canero - 3 years ago

Log in to reply

If x = 1 x=1 and y = 47 , y=47, then:

  • x y + 1 = 48 , xy+1 = 48, which is divisible by 24.
  • x + y = 48 , x + y = 48, which is divisible by 24.

Andrew Hayes Staff - 3 years ago

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?

ridoy k - 3 years ago

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

aman mishra - 2 years, 12 months ago

Log in to reply

Unfortunately, Ridoy's solution only proves that x + y 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!

Andrew Hayes Staff - 2 years, 12 months ago

If x y + 1 xy + 1 is a multiple of 24, then x y 1 xy \equiv -1 mod 24.

Therefore x , y x,y belong to the multiplicative group modulo 24, { ± 1 , ± 5 , ± 7 , ± 11 } \{ \pm 1, \pm 5, \pm 7, \pm 11 \} .

It is easily verified that for any element z z in this group, z 2 1 z^2 \equiv 1 .

Therefore x y 1 xy \equiv -1 implies x 1 / y y x \equiv -1/y \equiv -y and x + y 0 x + y \equiv 0 .

Note that we can write z = 6 a ± 1 z = 6a \pm 1 . Then z 2 36 a 2 ± 12 a + 1 = 12 ( 3 a ± 1 ) a + 1 , z^2 \equiv 36a^2 \pm 12a + 1 = 12(3a \pm 1)a+1, and since either a a is even or 3 a ± 1 3a \pm 1 is even, 12 ( 3 a + 1 ) a 12(3a+1)a is a multiple of 24. This proves that z 2 1 z^2 \equiv 1 mod 24.

Arjen Vreugdenhil - 3 years, 1 month ago
David Vreken
May 7, 2018

Since x y + 1 xy + 1 is divisible by 24 24 , x y + 1 = 24 n xy + 1 = 24n for some integer n n , and y = 24 n 1 x y = \frac{24n - 1}{x} . From this we know that in order for y y to be an integer, x x cannot be multiple of 2 2 or 3 3 .

Since y = 24 n 1 x y = \frac{24n - 1}{x} , x + y = x + 24 n 1 x = x 2 1 + 24 n x x + y = x + \frac{24n - 1}{x} = \frac{x^2 - 1 + 24n}{x} . Then for each x a ( m o d 24 ) x \equiv a \pmod{24} for a a is not a multiple of 2 2 or 3 3 and 0 < a < 24 0 < a < 24 , x + y 0 ( m o d 24 ) x + y \equiv 0 \pmod{24} . (For a = 1 a = 1 , 1 2 1 = 0 0 ( m o d 24 ) 1^2 - 1 = 0 \equiv 0 \pmod{24} , for a = 5 a = 5 , 5 2 1 = 24 0 ( m o d 24 ) 5^2 - 1 = 24 \equiv 0 \pmod{24} ; for a = 7 a = 7 , 7 2 1 = 48 0 ( m o d 24 ) 7^2 - 1 = 48 \equiv 0 \pmod{24} ; for a = 11 a = 11 , 1 1 2 1 = 120 0 ( m o d 24 ) 11^2 - 1 = 120 \equiv 0 \pmod{24} ; for a = 13 a = 13 , 1 3 2 1 = 168 0 ( m o d 24 ) 13^2 - 1 = 168 \equiv 0 \pmod{24} ; for a = 17 a = 17 , 1 7 2 1 = 288 0 ( m o d 24 ) 17^2 - 1 = 288 \equiv 0 \pmod{24} ; for a = 19 a = 19 , 1 9 2 1 = 360 0 ( m o d 24 ) 19^2 - 1 = 360 \equiv 0 \pmod{24} ; for a = 23 a = 23 , 2 3 2 1 = 528 0 ( m o d 24 ) 23^2 - 1 = 528 \equiv 0 \pmod{24} .)

Therefore, x + y x + y must also be divisible by 24 24 .

Six Sandlava
May 8, 2018

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)].

Kamran Kazem - 2 years, 3 months ago
Sal Uroveki
May 11, 2018

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.

Antoine Geagea
May 12, 2018

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).

Tom Verhoeff - 3 years ago
Ian Lee
May 9, 2018

If x y + 1 0 ( m o d 24 ) xy+1 \equiv 0 \pmod{24} , then x y 1 ( m o d 24 ) 23 ( m o d 24 ) xy \equiv -1 \pmod{24} \equiv 23 \pmod{24} .

If a 1 b 1 ( m o d n ) a_1 \equiv b_1 \pmod{n} and a 2 b 2 ( m o d n ) a_2 \equiv b_2 \pmod{n} , then a 1 a 2 b 1 b 2 ( m o d n ) a_1 a_2 \equiv b_1 b_2 \pmod {n} (compatibility with multiplication)

Because 23 is a prime, the only possible combination of 23 is 23 × 1 23 \times 1 .

i.e. x y 23 × 1 ( m o d 24 ) xy \equiv 23 \times 1 \pmod{24} .

Therefore, x + y 23 + 1 ( m o d 24 ) 24 ( m o d 24 ) 0 ( m o d 24 ) x + y \equiv 23 + 1 \pmod {24} \equiv 24 \pmod {24} \equiv 0 \pmod {24} .

This is what I thought...seems way simpler than the other solutions posted here. Maybe we are missing something though?

Will Bishop - 3 years, 1 month ago

Log in to reply

Sadly it turns out that since we're working with mods, we can't assume x 1 x \equiv 1 and y 23 ( m o d 24 ) y \equiv 23 \pmod{24} directly. 23 ( m o d 24 ) 23 \pmod{24} can be expressed in other ways, such as 5 19 5 \cdot 19 .

However, we could do casework on each of the cases: 5 19 , 7 17 , 11 13 5 \cdot 19, 7 \cdot 17, 11 \cdot 13 .

Jeremy Zhou - 3 years, 1 month ago
Pierre Carrette
May 7, 2018

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 24 x y + 1 24|xy+1 , this means that x y 23 m o d 24 xy \equiv 23 \mod 24 . Because 23 23 is a prime, x , y {x,y} have to be 1 , 23 {1,23} in any order. The sum of 1 1 and 23 23 is 24 24 , and thus the answer is TRUE

Paul Cockburn
May 11, 2018

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.

Sriraman Iyer
May 11, 2018

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

Gareth Ong
May 11, 2018

xy+1=24 xy=23 Factors of 23: 1,23 So x+y=24, thus x+y is always divisible by 24

Fabricio Kolberg
May 10, 2018

Consider the following properties

  • 1) xy+1 is divisible by 24
  • 2) x+y is divisible by 24

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.

  • For x=23, the suitable pair is 23,1, which is valid (23*1+1=24, 23+1=24).
  • For x=19, the suitable pair is 19,5, which is valid (19*5+1=96, 19+5=24).
  • For x=17, the suitable pair is 17,7, which is valid (17*7+1=120, 17+7=24).
  • For x=13, the suitable pair is 13,11, which is valid (13*11+1=144, 13+11=24).

Every other possible value of x has the same suitable pair as those first four.

Therefore, every suitable pair is valid, q.e.d.

Daniel Juncos
May 9, 2018

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.

Marius Hjortland
May 9, 2018

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 x=1 and y = 24 n 1 y=24n-1 , then x y + 1 = 1 ( 24 n 1 ) + 1 = 24 n 1 + 1 = 24 n xy+1=1\cdot(24n-1)+1=24n-1+1=24n , and x + y = 1 + ( 24 n 1 ) = 24 n + 1 1 = 24 n x+y=1+(24n-1)=24n+1-1=24n .

This means that for all values of 24 n 24n , you can always write it as x y + 1 = x + y = 24 n xy+1=x+y=24n , but i only proved that for x = 1 x=1 and y = 24 n 1 y=24n-1 and not the other ways of factoring 24 n 1 24n-1 . My solution only works for when 24 n 1 24n-1 is a prime number and for only a single case of when it's a composite number.

An example of x y + 1 = 24 a xy+1=24a and x + y = 24 b x+y=24b where x and y is not 1 1 and 24 n 1 24n-1 is x = 7 x=7 and y = 17 y=17 . This one works out too, as 7 + 17 = 24 7+17=24 and 7 17 + 1 = 120 = 24 5 7\cdot17+1=120=24\cdot5 .

Attila Kiss
May 9, 2018

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

Dong kwan Yoo
May 8, 2018

Because x 2 1 ( m o d 3 , 8 ) x^2 \equiv 1 \pmod{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=2k+1 ~:~ x^2 = 4k^2 + 4k +1 = 4k(k+1)+1 \equiv 1 \pmod{8} , x = 3 k ± 1 : x 2 1 ( m o d 3 ) x= 3k \pm1 ~:~ x^2 \equiv 1 \pmod{3 } )

If x y 1 x 2 ( m o d 3 , 8 ) xy \equiv -1 \equiv -x^2 \pmod{3 ~,~8} , x + y 0 ( m o d 3 , 8 ) x+y \equiv 0 \pmod{3 ~,~8}

∴ x+y is divisible by 24

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...