1. Assume the contrary: Suppose there exists some n∈N+ such that all prime factors of an are also prime factors of ∏k=1n−1ak.
2. Choose a prime factor: Let p be a prime factor of an. Then there exists 1≤j≤n−1 such that p∣aj. Choose the smallest such j.
3. **Prove periodicity modulo p**: We need to show that j∣n. Consider the sequence modulo p:
aj+1≡ajd+c≡c≡a1(modp)
By induction, we can show that for any u∈N+,
aj+u≡au(modp)
This implies that the sequence {an} is periodic with period j modulo p.
4. **Express n in terms of j**: Write n=qj+r where q∈Z and 0<r≤j. Then,
an≡ar(modp)
By the minimality of j, we must have r=j, hence j∣n.
5. **Prove vp(an)=vp(aj)**: Let vp(an)=r. Then,
aj+1=ajd+c≡c≡a1(modprd)
By induction, for any u∈N+,
aj+u≡au(modprd)
Thus,
an≡aj(modprd)
Since vp(aj)=r<rd, it follows that vp(an)=vp(aj).
6. Contradiction: For all prime factors p of an,
vp(an)≤vp(k=1∏n−1ak)
Hence,
an∣k=1∏n−1ak
Therefore,
an≤k=1∏n−1ak
However, for n=2,
a2=a1d+c>a1
By induction, if an−1>∏k=1n−2ak, then
an>an−12>k=1∏n−1ak
This shows that for all n∈N+,
an>k=1∏n−1ak
This is a contradiction. Therefore, there exists a prime factor p of an such that p∤∏k=1n−1ak.
■