Hannah has CPUs. The -th CPU initially has cores.
In one operation, she chooses one CPU with cores and splits it into two CPUs with positive integer numbers of cores and , where .
After performing some number of operations, Hannah wants all remaining CPUs to have the same number of cores.
Find the minimum number of operations required.
First, split the CPU with 6 cores into two CPUs with 4 and 2 cores. Then split the CPU with 4 cores into two CPUs with 2 and 2 cores.
All CPUs already have the same number of cores; no splits are needed.