Identifying arithmetic sequences and finding the common difference