They've given us a P value, so we just need to plug it into our function and find the corresponding n value:
[tex]5120=10(2^{\frac{n}{4}})[/tex]
[tex]512=2^{\frac{n}{4}}[/tex]
Then take the natural log of both sides:
[tex]\ln(512)=\ln(2^{\frac{n}{4}})=\frac{n}{4}\ln(2)[/tex]
[tex]\frac{\ln(512)}{\ln(2)}=\frac{n}{4}[/tex]
[tex]4*\frac{\ln(512)}{\ln(2)}=n[/tex]
Putting this into a calculator:
[tex]n=36[/tex]