A room holds N desks in one row from left to right, each desk next to the following one. Some desks hold one telephone, and the rest are empty.
Every telephone is broken. The telephone on desk i rings when the telephone on desk j rings and ∣j−i∣≤D.
The first desk and the last desk always hold a telephone. At the start the leftmost telephone rings. To make the telephone on the last desk ring, you place new telephones on empty desks. Find the smallest number of new telephones.