Question
Question: Let $[x]$ denote the largest whole number that is less than or equal to $x$. For example, $[-\pi] = ...
Let [x] denote the largest whole number that is less than or equal to x. For example, [−π]=−4. A function f(x) is defined as follows; if 0<x<2 then
f(x)=(43)[log2(x)]
and f(x)=0 otherwise. Note that, for example, f(21)=34. The value of ∫02f(x)dx is

1
2
3
4
5
3
Solution
The integral ∫02f(x)dx is evaluated by splitting the interval (0,2) into sub-intervals where f(x) is constant. This is determined by the floor function [log2(x)].
For 2n≤x<2n+1, [log2(x)]=n, and f(x)=(3/4)n.
The integral over such an interval is ∫2n2n+1(3/4)ndx=(3/4)n(2n+1−2n)=(3/4)n(2n)=(3/2)n.
The integral from 0 to 2 sums these contributions for n=0,−1,−2,…
∫02f(x)dx=∑n=0−∞(3/2)n=∑k=0∞(3/2)−k=∑k=0∞(2/3)k.
This is an infinite geometric series: 1+2/3+(2/3)2+….
The sum is 1−2/31=1/31=3.