Identify Arithmetic and Geometric Sequences