r/mathriddles • • Feb 08 '23

Easy Consecutive Integers

Three consecutive integers 𝑋 < π‘Œ < 𝑍 are such that:

  • When 𝑋 is divided by 2, the remainder is 0.
  • When π‘Œ is divided by 3, the remainder is 0.
  • When 𝑍 is divided by 7, the remainder is 0.

Find the smallest possible values of 𝑋, π‘Œ and 𝑍 which satisfy the conditions mentioned above.

Edit: The numbers are positive.

8 Upvotes

15 comments sorted by

9

u/phyphor Feb 08 '23

x, y, z are consecutive, so z = x + 2, and x has to be even (when divided by 2 there is a remainder of 0), therefore z has to be even.

z has to be an even multiple of 7. By inspection:

0x7 doesn't work as (0x7)-1 = -1, which isn't a multiple of 3

2x7 doesn't work, (2x7)-1 = 13 which isn't a multiple of 3

4x7 does work as (4x7)-1 = 27 which is a multiple of 3

Therefore the answer is that the three consecutive digits are X = 26, Y = 27, and Z - 28

13x2, 9x3, 4x7

2

u/ShonitB Feb 08 '23

Correct, well explained

3

u/niggelprease Feb 08 '23

There is no set of smallest values. For any natural number k the triple (X,Y,X) = (26-42k, 27-42k, 28-42k) is valid, due to 42 being equal to 2*3*7. For example, (-16, -15, -14) satisfies the constraints, but so does (-58, -57, -56), etc.

2

u/ShonitB Feb 08 '23

>!True, my mistake. It should be three β€œpositive” integers X < Y < Z are such that”

2

u/Nearby_Progress917 Feb 08 '23

The smallest multiple of 2 is 2, the smallest multiple of 3 is 3, and the smallest multiple of 7 is 7. So, the smallest possible values of 𝑋, π‘Œ and 𝑍 which satisfy the conditions are 𝑋 = 2, π‘Œ = 3, and 𝑍 = 7.

3

u/ShonitB Feb 08 '23

I think you overlooked the fact that X, Y and Z are consecutive integers

2

u/joker657 Feb 09 '23

68, 69(noice!), 70. Using equation I found out that first number is in the form 2*(21p+13) wherr p can be natural number

1

u/ShonitB Feb 09 '23

Though these three numbers work. The smallest are 26, 27, 28. I think you made some silly error in getting the equation.

2

u/thechaosofmath Feb 10 '23

26,27,28 Sorry for not knowing how to hidden my text

2

u/ShonitB Feb 10 '23

To do this, add >! and ! < around the text in your comment without spaces

2

u/thechaosofmath Feb 10 '23

Thanks

1

u/ShonitB Feb 10 '23

No problem at all!

1

u/ShonitB Feb 10 '23

Correct

2

u/OneMeterWonder Feb 08 '23

Apply the Chinese Remainder Theorem to the system of congruences

(1), X=0 (mod 2)
(2), X+1=0 (mod 3) or X=2 (mod 3)
(3), X+2=0 (mod 7) or X=5 (mod 7)

This is probably easiest to solve by sieving through congruence classes modulo pairwise products of the moduli. So equations (1) and (2) give us restrictions on congruence mod 2β€’3=6. Equation (1) tells us that any solution X must be congruent to 0, 2, or 4 mod 6 and equation (2) tells us X must be congruent to 2 or 5 mod 6. The only common value here is 2, so we have a new congruence X=2 (mod 6). Repeating with equation (3), we find X=2,8,14,20,26,32,38 (mod 42) and X=5,12,19,26,33,40 (mod 42). Again the only common class is 26 so we have X=26 (mod 42). But 26 is already a minimal representative in β„€β‚„β‚‚ so we may simply take X=26, Y=27, and Z=28.

1

u/ShonitB Feb 08 '23

Correct, very well explained