MathCastle
Proof Writing & Problem SolvingSuperchallenge

Proof Writing & Problem Solving · Superchallenge problem

Define T(1)=0T(1) = 0 and, for n≥2n \ge 2, T(n)=T(⌊n/2⌋)+T(⌈n/2⌉)+n−1T(n) = T(\lfloor n/2 \rfloor) + T(\lceil n/2 \rceil) + n - 1. (This counts the comparisons merge sort makes in its worst case on nn items.) What is T(1000)T(1000)?

Practice more like this