Question: Spot interest rate curve: $$\begin{array}{c|c} t & r_t \\ \hline 0.25 & 1.50\% \\ \hline 0.5 & 1.65\% \\ \hline 0.75 & 1.79\% \\ \hline 1 & 1.92\% \end{array}$$
I have a one year loan for $1,000,000$ with principal paid at the end of the one-year period. The loan has a variable interest rate that resets at the beginning of each three month period. The interest rate will be the spot interest rate at the beginning of each three month period. I enter an interest rate swap as the payer where the characteristics of the loan are matched exactly. What quarterly swap rate will I pay?
Attempt: I know that the present value of my swap payments must be equal to the present value of the variable swap payments that the other guy pays, so:
$$1000000R \left(\cfrac{1}{1.015} + \cfrac{1}{1.015 \cdot 1.0165} + \cfrac{1}{1.015 \cdot 1.0165 \cdot 1.0179} + \cfrac{1}{1.015 \cdot 1.0165 \cdot 1.0179 \cdot 1.0192}\right) \\ = 1000000\left(\cfrac{1.015}{1.015} + \cfrac{1.0165}{1.015 \cdot 1.0165} + \cfrac{1.0179}{1.015 \cdot 1.0165 \cdot 1.0179} + \cfrac{1.0192}{1.015 \cdot 1.0165 \cdot 1.0179 \cdot 1.0192}\right)$$
This equation does not bear the correct value for $R$, my quarterly rate. In fact I'm off by a little over a factor of $2$. My thought processes: these denominators discount the payments back to the present. Since I have a fixed rate $R$, all my payments should be $1000000R$. Since the counterparty pays the variable rate according to each spot rate, each of his payments should be $1000000r_t$.
Solution: $$R \left(\cfrac{1}{1.015^{0.25}} + \cfrac{1}{1.0165^{0.5}} + \cfrac{1}{1.0179^{0.75}} + \cfrac{1}{1.0192}\right) = \left(\cfrac{.003729}{1.015^{0.25}} + \cfrac{0.00477}{1.0165^{0.5}} + \cfrac{0.005137}{1.0179^{0.75}} + \cfrac{0.005728}{1.0192}\right)$$
This produces $R = .0048$. I don't understand why the payments are discounted in this way, and I also don't understand the numerators for the variable payments. I am told that these are $f^*_{[t_i,t_{i+1}]}$, but I don't see why my original answer isn't right. Thanks.