This article shows how to solve the N queens problem in 20 lines of code.
Have you ever heard of a maths problem based on Lord of The Rings characters?