you can use logarithms
Apologies if I was unclear. I understand why n = 9, i.e. 2^9 = 512. What I meant was whether or not 9, itself, can be calculated from just:
2.2^n-1 = 512
I don't believe it's possible but just wanted to double check with you guys. Thanks again.