step 1ab, what if i+c > n?