返回题库

AIME 1985 · 第 10 题

AIME 1985 — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

How many of the first 1000 positive integers can be expressed in the form

2x+4x+6x+8x\lfloor 2x \rfloor + \lfloor 4x \rfloor + \lfloor 6x \rfloor + \lfloor 8x \rfloor,

where xx is a real number, and z\lfloor z \rfloor denotes the greatest integer less than or equal to zz?

解析

Solution 1

Noting that all of the numbers are even, we can reduce this to any real number xx between 00 to 12\frac 12, as this will be equivalent to n2\frac n2 to n+12\frac {n+1}2 for any integer nn (same reasoning as above). So now we only need to test every 10 numbers; and our answer will be 100 times the number of integers we can reach between 1 and 10.

We can now approach this by directly searching for the integers (this solution) or brute forcing all of the cases (next solution):

We can match up the greatest integer functions with one of the partitions of the integer. If we let x=12x = \frac 12 then we get the solution 1010; now consider when x<12x < \frac 12: 2x=0\lfloor 2x \rfloor = 0, 4x1\lfloor 4x \rfloor \le 1, 6x2\lfloor 6x \rfloor \le 2, 8x3\lfloor 8x \rfloor \le 3. But according to this the maximum we can get is 1+2+3=61+2+3 = 6, so we only need to try the first 6 numbers.

  • 11: Easily possible, for example try plugging in x=18x =\frac 18.
  • 22: Also simple, for example using 16\frac 16.
  • 33: The partition must either be 1+1+11+1+1 or 1+21+2. If 4x=1\lfloor 4x \rfloor = 1, then x14x \ge \frac 14, but then 8x2\lfloor 8x \rfloor \ge 2; not possible; and vice versa to show that the latter partition doesn't work. So we cannot obtain 33.
  • 44: We can partition as 1+1+21+1+2, and from the previous case we see that 14\frac 14 works.
  • 55: We can partition as 1+2+21+2+2, from which we find that 13\frac 13 works.
  • 66: We can partition as 1+2+31+2+3, from which we find that 38\frac 38 works.

Out of these 6 cases, only 3 fails. So between 1 and 10 we can reach only the integers 1,2,4,5,6,101,2,4,5,6,10; hence our solution is 6100=6006 \cdot 100 = \boxed{600}.

Solution 2

As we change the value of xx, the value of our expression changes only when xx crosses rational number of the form mn\frac{m}{n}, where nn is divisible by 2, 4, 6 or 8. Thus, we need only see what happens at the numbers of the form mlcm(2,4,6,8)=m24\frac{m}{\textrm{lcm}(2, 4, 6, 8)} = \frac{m}{24}. This gives us 24 calculations to make; we summarize the results here:

124,2240\frac{1}{24}, \frac{2}{24} \to 0 3241\frac{3}{24} \to 1 424,5242\frac{4}{24}, \frac{5}{24} \to 2 624,7244\frac{6}{24}, \frac{7}{24} \to 4 8245\frac{8}{24} \to 5 924,1024,11246\frac{9}{24}, \frac{10}{24}, \frac{11}{24} \to 6 1224,1324,142410\frac{12}{24}, \frac{13}{24}, \frac{14}{24} \to 10 152411\frac{15}{24} \to 11 1624,172412\frac{16}{24},\frac{17}{24} \to 12 1824,192414\frac{18}{24}, \frac{19}{24} \to 14 202415\frac{20}{24}\to 15 2124,2224,232416\frac{21}{24}, \frac{22}{24}, \frac{23}{24} \to16 242420\frac{24}{24} \to 20

Thus, we hit 12 of the first 20 integers and so we hit 5012=60050 \cdot 12 = \boxed{600} of the first 10001000.

Solution 2 Shortcut

Because 2,4,6,82,4,6,8 are all multiples of 22, we can speed things up. We only need to check up to 1224\frac{12}{24}, and the rest should repeat. As shown before, we hit 6 integers (1,2,4,5,6,101,2,4,5,6,10) from 124\frac{1}{24} to 1224\frac{12}{24}. Similarly, this should repeat 100 times, for 600\boxed{600}

~N828335

Solution 2 Bigger Shortcut (Close to Solution 6)

We only need to check the numbers where it increments, namely 18,16,14,13,38,12\frac{1}{8}, \frac{1}{6}, \frac{1}{4}, \frac{1}{3}, \frac{3}{8}, \frac{1}{2}. As shown before, we hit 6 integers (1,2,4,5,6,101,2,4,5,6,10) from 124\frac{1}{24} to 12\frac{1}{2}. Similarly, this should repeat 100 times, for 600\boxed{600}

~JeffersonJ

Solution 3

Recall from Hermite's Identity that k=0n1x+kn=nx\sum_{k = 0}^{n - 1}\left\lfloor x + \frac kn\right\rfloor = \lfloor nx\rfloor. Then we can rewrite 2x+4x+6x+8x=4x+x+18+x+16+2x+14+x+13\lfloor 2x \rfloor + \lfloor 4x \rfloor + \lfloor 6x \rfloor + \lfloor 8x \rfloor = 4\lfloor x\rfloor + \left\lfloor x + \frac18\right\rfloor + \left\lfloor x + \frac16\right\rfloor + 2\left\lfloor x + \frac14\right\rfloor + \left\lfloor x + \frac13\right\rfloor +x+38+4x+12+x+58+x+23+2x+34+x+56+x+78+ \left\lfloor x + \frac38\right\rfloor + 4\left\lfloor x + \frac12\right\rfloor + \left\lfloor x + \frac58\right\rfloor + \left\lfloor x + \frac23\right\rfloor + 2\left\lfloor x + \frac34\right\rfloor + \left\lfloor x + \frac56\right\rfloor + \left\lfloor x + \frac78\right\rfloor. There are 1212 terms here (we don't actually have to write all of it out; we can just see where there will be duplicates and subtract accordingly from 2020). Starting from every integer xx, we can keep adding to achieve one higher value for each of these terms, but after raising the last term, we will have raised the whole sum by 2020 while only achieving 1212 of those 2020 values. We can conveniently shift the 10001000 (since it can be achieved) to the position of the 00 so that there are only complete cycles of 2020, and the answer is 12201000=600\frac {12}{20}\cdot1000 = \boxed{600}.

Solution 4

Let x=x+{x}x=\lfloor x\rfloor+\{x\} then

2x+4x+6x+8x=2(x+{x})+4(x+{x})+6(x+{x})+8(x+{x})=2x+4x+6x+8x+2{x}+4{x}+6{x}+8{x}=20x+(2{x}+4{x}+6{x}+8{x})\begin{aligned} \lfloor 2x\rfloor+\lfloor 4x\rfloor+\lfloor 6x\rfloor+\lfloor 8x\rfloor&=\lfloor 2(\lfloor x\rfloor+\{x\})\rfloor+\lfloor 4(\lfloor x\rfloor+\{x\})\rfloor+\lfloor 6(\lfloor x\rfloor+\{x\})\rfloor+\lfloor 8(\lfloor x\rfloor+\{x\})\rfloor\\ &=2\lfloor x\rfloor+4\lfloor x\rfloor+6\lfloor x\rfloor+8\lfloor x\rfloor+\lfloor 2\{x\}\rfloor+\lfloor 4\{x\}\rfloor+\lfloor 6\{x\}\rfloor+\lfloor 8\{x\}\rfloor\\ &=20\lfloor x\rfloor+(\lfloor 2\{x\}\rfloor+\lfloor 4\{x\}\rfloor+\lfloor 6\{x\}\rfloor+\lfloor 8\{x\}\rfloor) \end{aligned} Similar to the previous solutions, the value of 2{x}+4{x}+6{x}+8{x}\lfloor 2\{x\}\rfloor+\lfloor 4\{x\}\rfloor+\lfloor 6\{x\}\rfloor+\lfloor 8\{x\}\rfloor changes when {x}=mn\{x\}=\frac{m}{n}, where m{1,2,3,...,n1}m\in\{1,2,3,...,n-1\}, n{2,4,6,8}n\in\{2,4,6,8\}. Using Euler's Totient Function

k=04ϕ(2k)\sum\limits_{k=0}^4 \phi(2k) to obtain 1212 different values for {x}=mn\{x\}=\frac{m}{n}. (note that here Euler's Totient Function counts the number of {x}=mn\{x\}=\frac{m}{n} where mm, nn are relatively prime so that the values of {x}\{x\} won't overlap.).

Thus if kk can be expressed as 2x+4x+6x+8x\lfloor 2x\rfloor+\lfloor 4x\rfloor+\lfloor 6x\rfloor+\lfloor 8x\rfloor, then k=20a+bk=20a+b for some non-negative integers aa, bb, where there are 1212 values for bb.

Exclusively, there are 4949 values for aa in the range 0,or0, or49\cdot12=588orderedpairsordered pairs(a,b)$.

If a=0a=0, b0b\neq0, which includes 1111 ordered pairs.

If a=50a=50, b=0b=0, which includes 11 ordered pair.

In total, there are 588+11+1=600588+11+1=\boxed{600} values for kk.

~ Nafer

Solution 5

To simplify the question, let y=2xy = 2x. Then, the expression in the question becomes y+2y+3y+4y\lfloor y \rfloor + \lfloor 2y \rfloor + \lfloor 3y \rfloor + \lfloor 4y \rfloor.

Let {x}\{x\} represent the non-integer part of xx (For example, {2.8}=0.8\{2.8\} = 0.8). Then,

y+2y+3y+4y=y{y}+2y{2y}+3y{3y}+4y{4y}=10y({y}+{2y}+{3y}+{4y})=10(y+{y})({y}+{2y}+{3y}+{4y})=10y+10{y}({y}+{2y}+{3y}+{4y})=10y+9{y}({2y}+{3y}+{4y})\begin{aligned} \lfloor y \rfloor + \lfloor 2y \rfloor + \lfloor 3y \rfloor + \lfloor 4y \rfloor &= y - \{y\} + 2y - \{2y\} + 3y - \{3y\} + 4y - \{4y\} \\ &= 10y - (\{y\} + \{2y\} + \{3y\} + \{4y\}) \\ &= 10(\lfloor y \rfloor + \{y\}) - (\{y\} + \{2y\} + \{3y\} + \{4y\}) \\ &= 10\lfloor y \rfloor + 10\{y\} - (\{y\} + \{2y\} + \{3y\} + \{4y\}) \\ &= 10\lfloor y \rfloor + 9\{y\} - (\{2y\} + \{3y\} + \{4y\}) \\ \end{aligned} Since y\lfloor y \rfloor is always an integer, 10y10\lfloor y \rfloor will be a multiple of 10. Thus, we look for the range of the other part of the expression. We will be able to reach the same numbers when yy ranges from 00 to 11, because the curly brackets ({}\{\}) gets rid of any integer part. Let the combined integer part of 2y2y, 3y3y, and 4y4y be kk (In other words, k=2y+3y+4yk = \lfloor 2y \rfloor + \lfloor 3y \rfloor + \lfloor 4y \rfloor). Then,

9{y}({2y}+{3y}+{4y})=9{y}(2{y}+3{y}+4{y}k)=9{y}(9{y}k)=k\begin{aligned} 9\{y\} - (\{2y\} + \{3y\} + \{4y\}) &= 9\{y\} - (2\{y\} + 3\{y\} + 4\{y\} - k) \\ &= 9\{y\} - (9\{y\} - k) \\ &= k \end{aligned} The maximum value of kk will be when yy is slightly less than 11, which means k=1+2+3=6k = 1 + 2 + 3 = 6. As yy increases from 00 to 11, kk will increase whenever 2y2y, 3y3y, or 4y4y is an integer, which happens when yy hits one of the numbers in the set {14,13,12,23,34}\left\{\dfrac14, \dfrac13, \dfrac12, \dfrac23, \dfrac34 \right\}. When yy reaches 12\dfrac12, both 2y2y and 4y4y will be an integer, so kk will increase by 22. For all the other numbers in the set, kk increases by 11 since only 11 number in the set will be an integer. Thus, the possible values of kk are {0,1,2,4,5,6}\{0, 1, 2, 4, 5, 6\}.

Finally, looking back at the original expression, we plug in kk to get a multiple of 1010 plus any number in {0,1,2,4,5,6}\{0, 1, 2, 4, 5, 6\}. Thus, we hit all numbers ending in {0,1,2,4,5,6}\{0, 1, 2, 4, 5, 6\}, of which there are 600\boxed{600}.

~Owen1204

Solution 6

Imagine that we gradually increase xx from 00 to 11. At the beginning, the value of our expression is 00, at the end it is 2+4+6+8=202+4+6+8=20. Note that every time x=abx=\frac{a}{b} for some positive integer aa and a positive multiple bb of either 2,4,6,2, 4, 6, or 88. Thus, we have been able to express 12 of the integers from 1 through 20 when $0, namely when

x=12,22=1,14,34,16,13,23,56,18,38,58,78x = \frac{1}{2}, \frac{2}{2}=1, \frac{1}{4}, \frac{3}{4}, \frac{1}{6}, \frac{1}{3}, \frac{2}{3}, \frac{5}{6}, \frac{1}{8}, \frac{3}{8}, \frac{5}{8}, \frac{7}{8} .

Notice that

2(x+n)+4(x+n)+6(x+n)+8(x+n)=2x+4x+6x+8x+20n\lfloor 2(x+n) \rfloor + \lfloor 4(x+n)\rfloor + \lfloor 6(x+n) \rfloor+ \lfloor8(x+n) \rfloor= \lfloor 2x \rfloor+ \lfloor 4x \rfloor+ \lfloor 6x \rfloor+ \lfloor 8x \rfloor+ 20n . This conceptually means that the number of integers that can be expressed in the range (i,j)(i, j) is the same as the number of integers that can be expressed in the range (i+x,j+x)(i+x, j+x). Thus, because we can express 1212 integers in the range (1,20)(1, 20), we can cover 1250=60012*50 = \boxed{600} from 1 to 1000. thinker123-\text{thinker123}

Solution 7

After observing, we can see that there are 66 values of can be evaluated through the expression every 1010 numbers, so our answer is 6100=6006*100=600 ~bluesoul