Wilson's theorem modulo higher prime powers III: The cases modulo
p6 and
p7This paper extends the author's previous work by computing the Wilson quotient modulo $p^5$ and $p^6$, which is equivalent to determining $(p-1)!$ modulo $p^6$ and $p^7$, respectively. Some power sums of the Fermat quotients are also determined up to modulo $p^6$. Patterns in the $p$-adic coefficients of the Wilson quotient and $(p-1)!$ are discussed, showing that Wilson's original congruence fits into this broader theory.