Difference between revisions of "2024 AIME II Problems/Problem 7"

(Created page with "Let x+5y = cos(10). If 2+7y = 14cos(x), then what is the value of tan(xy)?")
 
Line 1: Line 1:
Let x+5y = cos(10). If 2+7y = 14cos(x), then what is the value of tan(xy)?
+
==Problem==
 +
 
 +
Let <math>N</math> be the greatest four-digit positive integer with the property that whenever one of its digits is changed to <math>1</math>, the resulting number is divisible by <math>7</math>. Let <math>Q</math> and <math>R</math> be the quotient and remainder, respectively, when <math>N</math> is divided by <math>1000</math>. Find <math>Q+R</math>.
 +
 
 +
==Solution 1==
 +
 
 +
We note that by changing a digit to <math>1</math> for the number <math>\overline{abcd}</math>, we are subtracting the number by either <math>1000(a-1)</math>, <math>100(b-1)</math>, <math>10(c-1)</math>, or <math>d-1</math>. Thus, <math>1000a + 100b + 10c + d \equiv 1000(a-1) \equiv 100(b-1) \equiv 10(c-1) \equiv d-1 \pmod{7}</math>. We can casework on <math>a</math> backwards, finding the maximum value.
 +
 
 +
(Note that computing <math>1000 \equiv 6 \pmod{7}, 100 \equiv 2 \pmod{7}, 10 \equiv 3 \pmod{7}</math> greatly simplifies computation).
 +
 
 +
Applying casework on <math>a</math>, we can eventually obtain a working value of <math>\overline{abcd} = 5694 \implies \boxed{699}</math>. ~akliu

Revision as of 20:10, 8 February 2024

Problem

Let $N$ be the greatest four-digit positive integer with the property that whenever one of its digits is changed to $1$, the resulting number is divisible by $7$. Let $Q$ and $R$ be the quotient and remainder, respectively, when $N$ is divided by $1000$. Find $Q+R$.

Solution 1

We note that by changing a digit to $1$ for the number $\overline{abcd}$, we are subtracting the number by either $1000(a-1)$, $100(b-1)$, $10(c-1)$, or $d-1$. Thus, $1000a + 100b + 10c + d \equiv 1000(a-1) \equiv 100(b-1) \equiv 10(c-1) \equiv d-1 \pmod{7}$. We can casework on $a$ backwards, finding the maximum value.

(Note that computing $1000 \equiv 6 \pmod{7}, 100 \equiv 2 \pmod{7}, 10 \equiv 3 \pmod{7}$ greatly simplifies computation).

Applying casework on $a$, we can eventually obtain a working value of $\overline{abcd} = 5694 \implies \boxed{699}$. ~akliu