arithmetic and geometric Sequences