The remainder on the first card can be 0,1,2 or 3 i.e 4 possibilities.
The remainder of the number on the next card when divided by 4 can have 3 possible values (except the one occurred earlier).
For each value on the card the remainder can have 3 possible values.
The total number of possible sequences is: 4*3^4