Move all disks from Tower A to another tower.
Move one disk at a time. Never place a larger disk on a smaller disk.
Move the small stack away, move the largest disk, then rebuild the stack.
The formula is 2ⁿ−1.
7, 15, 31, 63, 127, 255...