Let and be positive integers and let the sequence be defined by and for all non-negative integers . Prove that for any choice of and , the sequence contains infinitely many composite numbers.

How do I do this question? I just started self-learning number theory as recreation so yeah if anyone can show me how to solve it, I would really appreciate it.