Reformulating and equation



I'm having a brain fart. How would I rewrite N=2^n-1 to figure for n, when N
is given? TIA.


.