Can we obtain the pair $(1,50)$ with these following operations?

50 Views Asked by At

It's a problem from some russian competition:

We're given a card with two positive integers $(a,b)$ and we have tree machines which generate another card from the one we insert on it(I assume we don't lose the first one, when we put one card on it we end up with 2 cards)

  • the first machine receives $(a,b)$ and returns $(a+1,b+1)$

  • the second one receives $(a,b)$ and if both are even it returns $(\frac a2, \frac b2)$ it don't do nothing otherwise

  • the third one receives two cards: $(a,b)$ and $(b,c)$ and returns $(a,c)$

question: Can we obtain the card $(1,50)$ if we start with the $(5,19)$ ?

My guess: No

But I only considered the two first machines on my thoughts.

If we're given one card $(a,b)$ the ratio $\frac ab$ can only change by adding the same positive integer in the numerator and on the denominator, so to obtain $(1,50)$ from the previous card we would need to have an integer $p$ such that:

$$\frac{5 + p}{19 + p} = \frac{1}{50}$$

which would mean $$ p = -\frac{33}7$$ so with only the first two machines it would not be possible, but what about the third one ?

2

There are 2 best solutions below

6
On BEST ANSWER

Yes. It is possible. We need to exploit the fact the difference will always be a multiple of $7$.

  • Insert the card to the first machine 14 times to get $(19,33)$. Put that together with the original card to the third machine, and get $(5,33)$.
  • Repeat the process. Using the first machine go up $(33,61)$, then using the third get $(5,61)$.
  • Using the cards generated in the above fashion you get $(5,117)$, $(5,229),\ldots$. Then combine some card in between to finally get a $(5,397)$. Insert that to the first macine thrice -> $(8,400)$. Use the second machine thrice to bring that down to $(1,50)$.
0
On

Yes, you can. Get (6,20), then (3,10), then (n,n+7), then (4,11),(4,18),...(4,200)and divide by 2 twice