Let us say we have 52 cards with values ranging from 1-13 (4 sets of cards from 1-13). Assume that you wanted no two consecutive values to be next to each other in the pile of cards. For example, a 3 cannot be next to a 2 or a 4. How many ways can I arrange these cards that there are no consecutive values next to each other?
Can someone suggest a permutation that fulfills these requirements or suggest a computer program to solve the problem?