(a) Determine all nonnegative integers such that it is possible for an infinite arithmetic sequence to contain exactly terms that are integers. Prove your answer.
(b) Determine all nonnegative integers such that it is possible for an infinite geometric sequence to contain exactly terms that are integers. Prove your answer.
Please give a full solution, thanks!