Let denote the greatest integer function. If , then is equal to ______.
Solution
Core idea. A greatest integer part of a monotonic function is integrated as rectangles between the points where it reaches integers.
Concept refresher. For a decreasing positive function , the greatest integer part equals the integer exactly where
so its integral is a sum of rectangles.
Picture the situation. The integrand is , and decreases from , about 2.72, at . It is at least 2 while , at least 1 while , and below 1 afterwards.
Approach. Add the areas of the two rectangles.
Step 1: The rectangles
The integrand is 2 on , 1 on and 0 on the rest of . So the integral is . Comparing with gives , so .
Answer. 8
Sanity check. The upper limit , about 20, plays no part, because the integrand is 0 beyond .
Common wrong answers
- 2: Stopping at gives 2 in place of .
- 1: Taking the first step as 1 in place of 2 gives the integral 1, which does not fit the form with an integer unless the logarithm is ignored, and then .
Key takeaway
The trap. A large upper limit can be irrelevant when the integrand has already dropped to 0.
How toppers think. They mark the two points where the exponential equals 2 and 1 and add two rectangles.
Remember. at