Let Qn be the minimum number of moves needed to transfer a tower of n disks from
A to B if all moves must be clockwise –that is, from A to B, or from B to the other
peg, or from the other peg to A Also let Rn be the minimum number of moves needed
to go from B back to A under this restriction. Prove that
Qn =
{
0 if n = 0
2Rn−1 + 1 if n > 0
Rn =
{
0 if n = 0
Qn + Qn−1 + 1 if n > 0
(You need not to solve these recurrences.)