Y by Davi-8191, tenplusten, Mathuzb, nguyendangkhoa17112003, rashah76, itslumi, Adventure10, megarnie, TheHawk, yshk, Mango247, Sedro, cubres, and 4 other users
Find all positive integers
such that there exists a unique integer
such that
with the following property:
![\[ n!\mid a^n + 1
\]](//latex.artofproblemsolving.com/e/2/3/e23d39aab685888993d355d8c93d4e6475f53487.png)
Proposed by Carlos Caicedo, Colombia



![\[ n!\mid a^n + 1
\]](http://latex.artofproblemsolving.com/e/2/3/e23d39aab685888993d355d8c93d4e6475f53487.png)
Proposed by Carlos Caicedo, Colombia