------
## 最终结论
```python
def minOperations(nums):
    operations = 0
    max_num = max(nums)
    
    while max_num > 0:
        for i in range(len(nums)):
            if nums[i] % 2 == 1:
                nums[i] -= 1
                operations += 1
        max_num //= 2
        if max_num > 0:
            operations += 1
            
    return operations

# Example usage:
print(minOperations([1,5]))   # Output: 5
print(minOperations([2,2]))   # Output: 3
print(minOperations([4,2,5])) # Output: 6
print(minOperations([3,2,2,4])) # Output: 7
print(minOperations([2,4,8,16])) # Output: 8
```