返回题库

AIME 2007 I · 第 5 题

AIME 2007 I — Problem 5

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

The formula for converting a Fahrenheit temperature FF to the corresponding Celsius temperature CC is C=59(F32).C = \frac{5}{9}(F-32). An integer Fahrenheit temperature is converted to Celsius, rounded to the nearest integer, converted back to Fahrenheit, and again rounded to the nearest integer.

For how many integer Fahrenheit temperatures between 32 and 1000 inclusive does the original temperature equal the final temperature?

解析

Solution

Solution 1

Examine F32F - 32 modulo 9.

  • If F320(mod9)F - 32 \equiv 0 \pmod{9}, then we can define 9x=F329x = F - 32. This shows that F=[95[59(F32)]+32]F=[95(5x)+32]F=9x+32F = \left[\frac{9}{5}\left[\frac{5}{9}(F-32)\right] + 32\right] \Longrightarrow F = \left[\frac{9}{5}(5x) + 32\right] \Longrightarrow F = 9x + 32. This case works.
  • If F321(mod9)F - 32 \equiv 1 \pmod{9}, then we can define 9x+1=F329x + 1 = F - 32. This shows that F=[95[59(F32)]+32]F=[95(5x+1)+32]F = \left[\frac{9}{5}\left[\frac{5}{9}(F-32)\right] + 32\right] \Longrightarrow F = \left[\frac{9}{5}(5x + 1) + 32\right] \LongrightarrowF=[9x+95+32]F=9x+34F = \left[9x + \frac{9}{5}+ 32 \right] \Longrightarrow F = 9x + 34. So this case doesn't work.

Generalizing this, we define that 9x+k=F329x + k = F - 32. Thus, F=[95[59(9x+k)]+32]F=[95(5x+[59k])+32]F=[95[59k]]+9x+32F = \left[\frac{9}{5}\left[\frac{5}{9}(9x + k)\right] + 32\right] \Longrightarrow F = \left[\frac{9}{5}(5x + \left[\frac{5}{9}k\right]) + 32\right] \Longrightarrow F = \left[\frac{9}{5} \left[\frac{5}{9}k \right] \right] + 9x + 32. We need to find all values 0k80 \le k \le 8 that [95[59k]]=k\left[ \frac{9}{5} \left[ \frac{5}{9} k \right] \right] = k. Testing every value of kk shows that k=0,2,4,5,7k = 0, 2, 4, 5, 7, so 55 of every 99 values of kk work.

There are 1000329=107\lfloor \frac{1000 - 32}{9} \rfloor = 107 cycles of 99, giving 5107=5355 \cdot 107 = 535 numbers that work. Of the remaining 66 numbers from 995995 onwards, 995, 997, 999, 1000995,\ 997,\ 999,\ 1000 work, giving us 535+4=539535 + 4 = \boxed{539} as the solution.

Solution 2

Notice that [95[59k]]=k\left[ \frac{9}{5} \left[ \frac{5}{9} k \right] \right] = k holds if k=[95x]k=\left[ \frac{9}{5}x\right] for some integer xx. Thus, after translating from FF32F\to F-32 we want count how many values of xx there are such that k=[95x]k=\left[ \frac{9}{5}x\right] is an integer from 00 to 968968. This value is computed as [96859]+1=539\left[968*\frac{5}{9}\right]+1 = \boxed{539}, adding in the extra solution corresponding to 00.

Note

Proof that [95[59k]]=k\left[ \frac{9}{5} \left[ \frac{5}{9} k \right] \right] = k if k=[95x]k=\left[ \frac{9}{5}x\right] for some integer xx:

First assume that kk cannot be written in the form k=[95x]k=\left[ \frac{9}{5}x\right] for any integer xx. Let z=[59k]z = \left[ \frac{5}{9}k\right]. Our equation simplifies to k=[95z]k = \left[ \frac{9}{5}z\right]. However, this equation is not possible, as we defined kk such that it could not be written in this form. Therefore, if k[95x]k \neq \left[ \frac{9}{5}x\right], then [95[59k]]k\left[ \frac{9}{5} \left[ \frac{5}{9} k \right] \right] \neq k.

Now we will prove that if k=[95x]k = \left[ \frac{9}{5}x\right], [95[59k]]=k\left[ \frac{9}{5} \left[ \frac{5}{9} k \right] \right] = k. We realize that because of the 5 in the denominator of [95x]\left[ \frac{9}{5}x \right], [95x]\left[ \frac{9}{5}x \right] will be at most 25\frac{2}{5} away from 95x\frac{9}{5}x. Let z=[95x]95xz = \left[ \frac{9}{5}x \right]- \frac{9}{5}x, meaning that 25z25-\frac{2}{5} \leq z \leq \frac{2}{5}. Now we substitute this into our equation:

[95[59k]]=[95[59[95x]]]=[95[59(95x+z)]]=[95[59(95x+z)]]=[95[x+59z]]\left[ \frac{9}{5} \left[ \frac{5}{9} k \right] \right] = \left[ \frac{9}{5} \left[ \frac{5}{9} \left[ \frac{9}{5}x\right] \right] \right] = \left[ \frac{9}{5} \left[ \frac{5}{9} (\frac{9}{5}x + z) \right] \right] = \left[ \frac{9}{5} \left[ \frac{5}{9} (\frac{9}{5}x + z) \right] \right] = \left[ \frac{9}{5} \left[ x+ \frac{5}{9}z \right] \right] .

Now we use the fact that 25z25-\frac{2}{5} \leq z \leq \frac{2}{5}

[95[x59(25)]][95[x+59(z)]][95[x+59(25)]]\left[ \frac{9}{5} \left[ x - \frac{5}{9}(\frac{2}{5}) \right] \right] \leq \left[ \frac{9}{5} \left[ x + \frac{5}{9}(z) \right] \right] \leq \left[ \frac{9}{5} \left[ x + \frac{5}{9}(\frac{2}{5}) \right] \right] [95x][95[x+59(z)]]=[95[59k]][95x]\left[ \frac{9}{5} x \right] \leq \left[ \frac{9}{5} \left[ x + \frac{5}{9}(z) \right] \right] = \left[ \frac{9}{5} \left[ \frac{5}{9}k \right] \right] \leq \left[ \frac{9}{5}x \right] Hence [95[59k]]=[95x]=k\left[ \frac{9}{5} \left[ \frac{5}{9}k \right] \right] = \left[ \frac{9}{5}x \right] = k and we are done.

- mako17

Solution 3

Let cc be a degree Celsius, and f=95c+32f=\frac 95c+32 rounded to the nearest integer. Since ff was rounded to the nearest integer we have f((95)c+32)1/2|f-((\frac 95)c+32)|\leq 1/2, which is equivalent to (59)(f32)c518|(\frac 59)(f-32)-c|\leq \frac 5{18} if we multiply by 5/95/9. Therefore, it must round to cc because 518<12\frac 5{18}<\frac 12 so cc is the closest integer. Therefore there is one solution per degree Celsius in the range from 00 to (59)(100032)+1=(59)(968)+1=538.8(\frac 59)(1000-32) + 1=(\frac 59)(968) + 1=538.8, meaning there are 539539 solutions.

Solution 4

Start listing out values for FF and their corresponding values of CC. You will soon find that every 9 values starting from FF = 32, there is a pattern:

F=32F=32: Works

F=33F=33: Doesn't work

F=34F=34: work

F=35F=35: Doesn’t work

F=36F=36: Works

F=37F=37: Works

F=38F=38: Doesn’t work

F=39F=39: Works

F=40F=40: Doesn’t work

F=41F=41: Works

There are 969969 numbers between 3232 and 10001000, inclusive. This is 107107 sets of 99, plus 66 extra numbers at the end. In each set of 99, there are 55 “Works,” so we have 1075=535107\cdot5 = 535 values of FF that work.

Now we must add the 66 extra numbers. The number of “Works” in the first 66 terms of the pattern is 44, so our final answer is 535+4=539535 + 4 = 539 solutions that work.

Submitted by warriorcats

Solution 5(similar to solution 3 but faster solution if you have no time)

Notice that every CC value corresponds to exactly one FF value but multiple FF values can correspond to a CC value. Thus, the smallest CC value is 00 and the largest CC value is 538538 yielding 539\boxed{539} solutions.

-alanisawesome2018

Video Solution

2007 AIME I #5

MathProblemSolvingSkills.com