Iterative algorithm for 3 pegs (or rods, or whatever you call them) is to repeat two following points:
1. Move smallest disks to the right/left (if odd/even)
2. Make one possible move left without touching the smallest disk
My question is - Is there some similar algorithm for n > 3 pegs?
I couldn't find this in the internet (at least iterative). I couldn't figure anything out by myself. And the algorithm above just doesn't work - it moves disks inifnitely.
I know I had post 2 kind of related questions before, and you didn't welcome them too well, so before you downvote - just write me in the comment to research more for some info by myself, and I'm deleting this thread.