The solution would be like this for this specific problem:
1024 = 16*2^(n-1)
64 = 2^(n-1)
2^6 = 2^(n-1)
n-1 = 6
n = 7
I am hoping that this answer has satisfied your query and it will be able to help you in your endeavor, and if you would like, feel free to ask another question.