Question: 2 to what power equals 512?
Answer: For 2 x specifically you can connect it with bytes and bits. and so on, you can easily remember now that 512 is 2 9 and 1024 is 2 10 and so on. Yep: memorization. You should know the first few powers of the first few numbers.