Solution 1
Noting that all of the numbers are even, we can reduce this to any real number x between 0 to 21, as this will be equivalent to 2n to 2n+1 for any integer n (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=21 then we get the solution 10; now consider when x<21: ⌊2x⌋=0, ⌊4x⌋≤1, ⌊6x⌋≤2, ⌊8x⌋≤3. But according to this the maximum we can get is 1+2+3=6, so we only need to try the first 6 numbers.
- 1: Easily possible, for example try plugging in x=81.
- 2: Also simple, for example using 61.
- 3: The partition must either be 1+1+1 or 1+2. If ⌊4x⌋=1, then x≥41, but then ⌊8x⌋≥2; not possible; and vice versa to show that the latter partition doesn't work. So we cannot obtain 3.
- 4: We can partition as 1+1+2, and from the previous case we see that 41 works.
- 5: We can partition as 1+2+2, from which we find that 31 works.
- 6: We can partition as 1+2+3, from which we find that 83 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,10; hence our solution is 6⋅100=600.
Solution 2
As we change the value of x, the value of our expression changes only when x crosses rational number of the form nm, where n is divisible by 2, 4, 6 or 8. Thus, we need only see what happens at the numbers of the form lcm(2,4,6,8)m=24m. This gives us 24 calculations to make; we summarize the results here:
241,242→0
243→1
244,245→2
246,247→4
248→5
249,2410,2411→6
2412,2413,2414→10
2415→11
2416,2417→12
2418,2419→14
2420→15
2421,2422,2423→16
2424→20
Thus, we hit 12 of the first 20 integers and so we hit 50⋅12=600 of the first 1000.
Solution 2 Shortcut
Because 2,4,6,8 are all multiples of 2, we can speed things up. We only need to check up to 2412, and the rest should repeat. As shown before, we hit 6 integers (1,2,4,5,6,10) from 241 to 2412. Similarly, this should repeat 100 times, for 600
~N828335
Solution 2 Bigger Shortcut (Close to Solution 6)
We only need to check the numbers where it increments, namely 81,61,41,31,83,21. As shown before, we hit 6 integers (1,2,4,5,6,10) from 241 to 21. Similarly, this should repeat 100 times, for 600
~JeffersonJ
Solution 3
Recall from Hermite's Identity that ∑k=0n−1⌊x+nk⌋=⌊nx⌋. Then we can rewrite ⌊2x⌋+⌊4x⌋+⌊6x⌋+⌊8x⌋=4⌊x⌋+⌊x+81⌋+⌊x+61⌋+2⌊x+41⌋+⌊x+31⌋ +⌊x+83⌋+4⌊x+21⌋+⌊x+85⌋+⌊x+32⌋+2⌊x+43⌋+⌊x+65⌋+⌊x+87⌋. There are 12 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 20). Starting from every integer x, 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 20 while only achieving 12 of those 20 values. We can conveniently shift the 1000 (since it can be achieved) to the position of the 0 so that there are only complete cycles of 20, and the answer is 2012⋅1000=600.
Solution 4
Let x=⌊x⌋+{x} then
⌊2x⌋+⌊4x⌋+⌊6x⌋+⌊8x⌋=⌊2(⌊x⌋+{x})⌋+⌊4(⌊x⌋+{x})⌋+⌊6(⌊x⌋+{x})⌋+⌊8(⌊x⌋+{x})⌋=2⌊x⌋+4⌊x⌋+6⌊x⌋+8⌊x⌋+⌊2{x}⌋+⌊4{x}⌋+⌊6{x}⌋+⌊8{x}⌋=20⌊x⌋+(⌊2{x}⌋+⌊4{x}⌋+⌊6{x}⌋+⌊8{x}⌋)
Similar to the previous solutions, the value of ⌊2{x}⌋+⌊4{x}⌋+⌊6{x}⌋+⌊8{x}⌋ changes when {x}=nm, where m∈{1,2,3,...,n−1}, n∈{2,4,6,8}. Using Euler's Totient Function
k=0∑4ϕ(2k)
to obtain 12 different values for {x}=nm. (note that here Euler's Totient Function counts the number of {x}=nm where m, n are relatively prime so that the values of {x} won't overlap.).
Thus if k can be expressed as ⌊2x⌋+⌊4x⌋+⌊6x⌋+⌊8x⌋, then k=20a+b for some non-negative integers a, b, where there are 12 values for b.
Exclusively, there are 49 values for a in the range 0,or49\cdot12=588orderedpairs(a,b)$.
If a=0, b=0, which includes 11 ordered pairs.
If a=50, b=0, which includes 1 ordered pair.
In total, there are 588+11+1=600 values for k.
~ Nafer
Solution 5
To simplify the question, let y=2x. Then, the expression in the question becomes ⌊y⌋+⌊2y⌋+⌊3y⌋+⌊4y⌋.
Let {x} represent the non-integer part of x (For example, {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})=10⌊y⌋+10{y}−({y}+{2y}+{3y}+{4y})=10⌊y⌋+9{y}−({2y}+{3y}+{4y})
Since ⌊y⌋ is always an integer, 10⌊y⌋ 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 y ranges from 0 to 1, because the curly brackets ({}) gets rid of any integer part. Let the combined integer part of 2y, 3y, and 4y be k (In other words, k=⌊2y⌋+⌊3y⌋+⌊4y⌋). Then,
9{y}−({2y}+{3y}+{4y})=9{y}−(2{y}+3{y}+4{y}−k)=9{y}−(9{y}−k)=k
The maximum value of k will be when y is slightly less than 1, which means k=1+2+3=6. As y increases from 0 to 1, k will increase whenever 2y, 3y, or 4y is an integer, which happens when y hits one of the numbers in the set {41,31,21,32,43}. When y reaches 21, both 2y and 4y will be an integer, so k will increase by 2. For all the other numbers in the set, k increases by 1 since only 1 number in the set will be an integer. Thus, the possible values of k are {0,1,2,4,5,6}.
Finally, looking back at the original expression, we plug in k to get a multiple of 10 plus any number in {0,1,2,4,5,6}. Thus, we hit all numbers ending in {0,1,2,4,5,6}, of which there are 600.
~Owen1204
Solution 6
Imagine that we gradually increase x from 0 to 1. At the beginning, the value of our expression is 0, at the end it is 2+4+6+8=20. Note that every time x=ba for some positive integer a and a positive multiple b of either 2,4,6, or 8. Thus, we have been able to express 12 of the integers from 1 through 20 when $0, namely when
x=21,22=1,41,43,61,31,32,65,81,83,85,87
.
Notice that
⌊2(x+n)⌋+⌊4(x+n)⌋+⌊6(x+n)⌋+⌊8(x+n)⌋=⌊2x⌋+⌊4x⌋+⌊6x⌋+⌊8x⌋+20n
. This conceptually means that the number of integers that can be expressed in the range (i,j) is the same as the number of integers that can be expressed in the range (i+x,j+x). Thus, because we can express 12 integers in the range (1,20), we can cover 12∗50=600 from 1 to 1000. −thinker123
Solution 7
After observing, we can see that there are 6 values of can be evaluated through the expression every 10 numbers, so our answer is 6∗100=600 ~bluesoul