Problem

Source: IMO Shortlist 2005 N4, Iran preparation exam

Tags: factorial, modular arithmetic, number theory, Divisibility, exponential, IMO Shortlist, Chinese Remainder Theorem



Find all positive integers $ n$ such that there exists a unique integer $ a$ such that $ 0\leq a < n!$ with the following property: \[ n!\mid a^n + 1 \] Proposed by Carlos Caicedo, Colombia