Proof Techniques & Number Theory

Shared context
s₁=s₂=1 and sᵢ=1+min(sᵢ₋₁,sᵢ₋₂) for i>2.
Answer & solution
Answer: sₙ=⌈n/2⌉ for n≥1. (no official key was published)
1. Use strong induction because the recurrence depends on two previous terms. The proposed formula gives 1 for n=1 and n=2, matching both initial conditions.
2. Assume the formula holds through n−1, with n≥3. Then sₙ=1+min(⌈(n−1)/2⌉,⌈(n−2)/2⌉). The second ceiling is no larger, so the minimum is ⌈(n−2)/2⌉.
3. Because subtracting an integer commutes with ceiling, ⌈(n−2)/2⌉=⌈n/2⌉−1. Therefore sₙ=⌈n/2⌉, completing induction.
4. Equivalently, n=2k gives 1+min(k,k−1)=k and n=2k+1 gives 1+min(k,k)=k+1. The first terms 1,1,2,2,3,3 check the ceiling rather than floor convention.