Determine whether a particular number is a term of a given arithmetic sequence.