Skip to main content
OlympiadHQ

Browse · MathNet

Print

Romanian Mathematical Olympiad

Romania counting and probability

Problem

How many four digit numbers simultaneously satisfy the equalities and ?
Solution
From we get , hence and furthermore . As , we have , which implies or . Recall that , so either or . The numbers must have one of the forms , or , with and . In all, there are numbers.
Final answer
171

Techniques

Enumeration with symmetryVieta's formulasSymmetric functions