On generalized Frame-Stewart numbers
Abstract
For the multi-peg Tower of Hanoi problem with k ≥slant 4 pegs, so far the best solution is obtained by the Stewart's algorithm based on the the following recurrence relation: S\k(n)=\1 ≤slant t ≤slant n \2 · S\k(n-t) + S\k-1(t)\, S\3(n) = 2n -- 1. In this paper, we generalize this recurrence relation to G\k(n) = \1≤slant t≤slant n\ p\k· G\k(n-t) + q\k· G\k-1(t) \, G\3(n) = p\3· G\3(n-1) + q\3, for two sequences of arbitrary positive integers (p\i)\i ≥slant 3 and (q\i)\i ≥slant 3 and we show that the sequence of differences (G\k(n)- G\k(n-1))\n ≥slant 1 consists of numbers of the form (Π\i=3kq\i) · (Π\i=3kp\iα\i), with α\i≥slant 0 for all i, arranged in nondecreasing order. We also apply this result to analyze recurrence relations for the Tower of Hanoi problems on several graphs.