For each number, the digits can either be 0 or 9, and there are 7 digits at most.
We calculate the total number of such numbers for 1, 2, ..., 7 digits.
- For 1 digit: Only 1 possibility (9).
- For 2 digits: 2 choices for the first digit (9 or 0, but first digit cannot be 0), and 2 choices for the second (9 or 0), so \( 2 \times 2 = 4 \).
- For 3 digits: Similarly, \( 2 \times 2 \times 2 = 8 \), and so on.
The total number of such numbers is \( 1 + 4 + 8 + 16 + 32 + 64 + 64 = 127 \).
Thus, the correct answer is (B).
Let $f(x) = \frac{1 - \cos{P x}}{x \sin{x}}$ when $ x \neq 0 $ and $ f(0) = \frac{1}{2} $. If $ f $ is continuous at $ x = 0 $, then $ P $ is equal to
If $$f(x) = \begin{cases} 2 \sin x & \text{for} \ -\pi \leq x \leq -\frac{\pi}{2}, a \sin x + b & \text{for} \ -\frac{\pi}{2}<x<\frac{\pi}{2}, \cos x & \text{for} \ \frac{\pi}{2} \leq x \leq \pi,\end{cases}$$and it is continuous on $[- \pi, \pi]$, then the values of $ a $ and $ b $ are:
The first term and the 6th term of a G.P. are 2 and \( \frac{64}{243} \) respectively. Then the sum of first 10 terms of the G.P. is:
The general solution of the differential equation \( \frac{dy}{dx} = xy - 2x - 2y + 4 \) is: