Finding Common Difference and Number of Terms