A $4$-storey house is to be painted by some $6$ different colors such that each storey is painted in one color. How many ways are there to paint the house? Repetition of color is allowed.
The answer turns out to be $6^4$. Although this seems correct to me if looking at the problem color by color I was wondering why can't the answer be $4^6$ instead looking at the problem floor by floor?
Using $6^4$ means that the color repetition is allowed but the floor repetition is not allowed, while using $4^6$ means that the floor repetition is allowed (contradicts the fact that each floor can only be colored once) but the repetition of colors is not allowed.