For n $\in$ N let $\beta(n)$ denote the number of digits used in the binary representation of n. For example $\beta(1)$ = 1 $\beta(2)$ = 2 $\beta(3)$ = 2 $\beta(4)$ = 3 Find a closed formula for an arbitrary n $\in$ N
where N is the set of natural numbers.
So what I have is the representation of n = 1...12 in binary so, n = 1: $2^0$ n = 2: $2^1$ n = 3: $2^0$ + $2^1$ etc. But the closed form solution isn't apparent