It may help to realize that r/n = rate per compounding period, r is an annual rate of interest, n is the number of compounding periods per year, and t is the number of years.
Formulas are meaningless unless you know what the variables stand for.. Here n is the number of compounding periods per year. Each compounding period is 1 week. Sadly, the number of weeks per year is not a nice number, but for many practical purpose 365/7 = just about 52. So unless you are dealing with millions, you can say 365/7 = 52. And what is t measuring? Thus , nt equals what? How about (1 + r/n)?
If you know [MATH]\dfrac{r}{n} \text { and } nt, \text { then what is } g = \left ( 1 + \dfrac{r}{n} \right )^{nt}[/MATH]
But F = P * g, where F is future value, and P is present value.. Thus P = F/g.