Skip to main content
OlympiadHQ

Browse · MathNet

Print

Vijetnam 2011

Vietnam 2011 algebra

Problem

A sequence of integers determined by Show that is divisible by .
Solution
Consider the sequence of integers determined by Clearly, for all , we have . () The characteristic equation of sequence : , or . Consequently, the general term of has the form: . By the initial conditions for sequence , we obtain Hence and . Thus . Since is a prime, according to the little Fermat theorem we have: Hence . Consequently (since ). But , hence . Thus (by means of ()).

Techniques

Recurrence relationsFermat / Euler / Wilson theoremsInverses mod n