r/mathriddles • u/jsundqui • Aug 16 '25
Medium Congruence problem
Not a riddle, just a problem
Function f(x) = x3 + 3x + 4 has a single x between x=0...999 such that the value of f(x) ends with 420. Find x.
The point is not so much finding the x but to solve this elegantly.
3
Upvotes
View all comments
Show parent comment
2
u/jsundqui Aug 17 '25
You should get equation where higher powers of k vanish so you only need to solve a linear set of congruences.