This is a very very elementary problem solving technique I was taught some time back. I have been using it but now looking at it, I find it kinda strange why it should be this way.
Typically, the type of question, involving the technique goes like this:
you have five cards, one of them cannot be put at either end of the arrangement, how many possible arrangements are there?
The correct way of doing this is simply to do: 4*3*2*1*3. You draw five blanks, first write 4 and 3 on both ends. Then from there you go as if without that restriction.
If you do 4*4*3*2*1, which is wrong, the question would be the same exception that same card cannot be put, this time, at only one of the two ends,
Here is something I don't get. If I do 4*4*3*1*1, then it seems like a completely different story. It seems to me like the correct as answer to the first problem ( both ends). By doing this way, the situation is like I cannot put that card at the first slot, but I can at the second slot (going from left to right, instead of jumping back and forth), then I draw a card to put at the second slot, the card I drew is not that card, the same keeps happening until I am at the fourth slot, I know if I don't draw that card now, I will violate the rule. So technically, there is one choice for this slot, this is when I jump to the last slot before going back to the fourth, second to last, slot.
My other question: do I necessarily have to go the last slot before going back to the second slot?
The problem is that the cards that occur as middle cards determine the last card. Consider the cards numbered $1,2,3,4,5$ where the card numbered $1$ cannot be first or last.
In the product $4\cdot 4\cdot 3\cdot 2\cdot 1$, think about what you're actually doing:
1) Pick one of $2,3,4,5$ for the first card.
2) Pick one of the remaining four cards for the second card
3) Pick one of the remaining three cards for the third card
4) Pick one of the remaining two cards for the second card
5) There is only one card left for the last card. Now, here's where the problem is: what card is left? If you're left with the $1$ card, then this is not a valid sequence. If you're not left with the $1$ card, then the sequence is valid.
Now, you must figure out which of the sequences you've constructed will have a $1$ at the end. This is precisely $4\cdot 3\cdot 2\cdot 1$. Therefore, there are $$4\cdot 4\cdot 3\cdot 2\cdot 1-4\cdot 3\cdot 2\cdot 1=4\cdot 3\cdot 3\cdot 2\cdot 1$$ ways to not have the $1$ at either end.