Inspect successive terms to decide whether a sequence is arithmetic or geometric.
Identify a sequence as arithmetic or geometric sequence up to n terms.