So I recently thought of something. What if you take an integer (like 17 in this case), and find the set of numbers that add together in the closest form, of length 2, but increasing each level. So you would divide 17 into 8 and 9. But then those two numbers would be divided 3 times, producing 2, 3, 3 and 3, 3, 3 respectively. You go any number of levels until the resulting numbers are 0 or 1. Then you count the number of levels. This creates a sort of magnitude of the number. In this case, that magnitude is 3, because it required 3 levels to reach 1's and 0's.
Now the question is, is there any mathematical way of doing this? Any formula that could produce the magnitude of an integer?