Apply recurrence to Towers of Hanoi (#726)