Arithmetic patterns and problem solving