example of arithmetic sequence problem in real life situation