Problem

Source: Argentina Cono Sur TST 2024 P6

Tags: number theory, TST



Find all pairs of positive integers $(n, k)$ that satisfy the equation $$n!+n=n^k$$