I think I have got for cube,which is 6 times as well,in simple words,each direction requires two cuts.

However,I cannot generalise ,it is a bit hard to find the partern,I think it has something to do with ,but I cannot derive a general formula.

Can anyone help me please? Any solution for the generalised formular? Thanks a lot.