Skip to main content
OlympiadHQ

Browse · MathNet

Print

Mathematica competitions in Croatia

Croatia algebra

Problem

Find the least positive integer such that the expression for is an integer divisible by . (Mea Bombardelli)
Solution
Arranging the expression we get Since , every power of is congruent to modulo . Therefore, . In order for the entire expression to be divisible by , the number has to be congruent to modulo , so the least positive integer with the desired property is the one that satisfies , which gives .
Final answer
8112386

Techniques

Polynomial operationsPolynomials mod p