Increasing, Decreasing, and Repeating Patterns