MathCastle
ChallengeSuperchallenge

Challenge · Superchallenge problem

How many permutations of 1,2,…,31, 2, \ldots, 3 alternate (each term is either larger than both neighbors or smaller than both neighbors)?

Practice more like this