Let's say you have a variant of The Tower of Hanoi, where you have $4$ pegs and $4$ discs. The formula for $3$ pegs and $n$ discs is $2^n-1$ but how would you work out the minimum number of moves in which a variant with $4$ pegs and $4$ discs can be calculated?
At first I figuered you can just ignore one of the pegs and use the normal formula but I realized that with $4$ pegs, the tower can be solved in a less number of moves. And now I'm not sure.
A better upper limit: you can work the discs in pairs, moving every pair of discs to a new peg in three moves using a designated "spare" peg. So the normal $2^4-1 = 15$ moves becomes $3\times (2^2-1)=9$ moves.
Similarly with $8$ discs on $4$ pegs you should be able to solve in $3\times (2^4-1) = 45$ moves.