DR.WANG Mathematics中文

2026 Euclid · Question 7

Functions & graphs · Piecewise functions · arithmetic · Ratios and proportions

Problem outline

(a) Flowers are classified by colour (yellow/white) and species (rose/carnation). Half the yellow flowers are roses, one quarter of the roses are yellow, and white carnations make up one quarter of all flowers. Find the fraction that are yellow roses. (b) For 0<x≤10<x\le1, f(x)=0f(x)=0; for x>1x>1, f(x)=1+f(log⁡2x)f(x)=1+f(\log_2x). Count the positive integers with f(n)=4f(n)=4.

Show answer and methods 1 methods

Answer

(a) 3/203/20. (b) 6552065520.

Method 1 Class proportions and inverse thresholds

(a) Normalize the total to 11 and let yellow roses occupy uu. Yellow carnations also occupy uu, and white roses occupy 3u3u. The only remaining category is white carnations, of share 1/41/4. Thus 5u+1/4=15u+1/4=1, or u=3/20u=3/20.

(b) Each further application of the recursion takes the interval for the previous value and exponentiates its endpoints with base 22. Starting with f=1f=1 on (1,2](1,2], the succeeding intervals are (2,4](2,4], (4,16](4,16], then (16,65536](16,65536]. The number of integers in the last interval is 65536−1665536-16.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)