arithmetic progression and geometric progression