Identify arithmetic and geometric sequences