{ "problem": "Two distinct positive integers \\( a \\) and \\( b \\) are written on a blackboard. At each step, you must choose one of the two operations — either adding 2 or multiplying by 3 — for each number separately, and apply the chosen operation to both numbers (possibly using different operations). You must apply an operation to both numbers every step. Find all pairs $(a, b)$ such that we can make the two numbers on the blackboard equal after a finite number of steps.", "solution": "The answer is that $a$ and $b$ are both even, or $a$ and $b$ are both odd and have the same remainder when divided by 4.\n Finding an invariant\n\n Let's observe how the remainder when divided by 4 changes under the operations. First, for odd numbers, both operations change the remainder as follows:\n\n $1 \\rightarrow 3,3 \\rightarrow 1$\n\n For even numbers, adding 2 changes the remainder as follows:\n\n \\[\n 0 \\rightarrow 2,2 \\rightarrow 0\n \\]\n\n and multiplying by 3 changes the remainder as follows:\n \\[\n 0 \\rightarrow 0,2 \\rightarrow 2\n \\]\n\n\n Finding impossible cases\n\n From the observation in , we can find conditions on $a$ and $b$ for which the conclusion of the problem does not hold. Let's consider the following two cases:\n\n (Case 1) $a$ and $b$ have different parity.\n\n Since the parity of the two numbers does not change under the operations, the two numbers cannot become equal. Therefore, the answer is impossible in this case.\n\n (Case 2) $a$ and $b$ are both odd and have different remainders when divided by 4.\n\n Since odd numbers change their remainders when divided by 4 under each operation, the remainders of the two numbers when divided by 4 will always be different, regardless of the operations. Therefore, the answer is impossible in this case.\n\n Now, let's prove that the answer is possible for $a$ and $b$ that do not satisfy (Case 1) and (Case 2).\n\n Showing that the operations exist for the remaining cases.\n\n The remaining cases are as follows:\n\n (Case 3) $a, b$ are both odd and have the same remainder when divided by 4.\n\n (Case 4) $a, b$ are both even.\n\n First, let's show that we can make $a \\equiv b(\\bmod 4)$ for both cases by applying operations to $a$ and $b$. In (Case 3), $a \\equiv b(\\bmod 4)$ is already satisfied.\n\n In (Case 4), if $a \\neq b(\\bmod 4)$, then by applying the operation of changing $a$ to $3a$ and $b$ to $b+2$, we can see that $3a \\equiv b+2(\\bmod 4)$. Therefore, we can make the two numbers congruent modulo 4.\n\n Now, let's write the two numbers with the same remainder when divided by 4 as $x$ and $x+4n$. Let's add 2 to $x$ for $k$ times and then multiply it by 3. On the other hand, let's multiply $x+4n$ by 3 and then add 2 to it for $k$ times. As a result of the operations, $x$ becomes $3(x+2k)$ and $x+4n$ becomes $3x+12n+2k$.\n\n Therefore, if we set $k=3n$, then the two numbers become equal.\n\n [Short answer] $a$ and $b$ are both even, or $a$ and $b$ are both odd and have the same remainder when divided by 4.", "grading_guidelines": "(Partial)\n 1. Found a correct invariant $\\pmod 4$.\n(Almost)\n 1. Verification contains minor mistakes only.", "problem_id": "PB-Advanced-014", "level": "advanced", "category": "Combinatorics", "source": "Novel Problem", "max_score": 7, "difficulty": "IMO-medium", "short_answer": "$a$ and $b$ are both even, or $a$ and $b$ are both odd and have the same remainder when divided by 4." }