ECS #1000: Arithmetic sequence