Lucas’ theorem states that for a prime , integers and , one has . Let be the set of pairs with for which this congruence holds modulo for all . Rowland characterized in terms of harmonic sums and symmetries of Pascal’s triangle. For , we give a criterion for a point to lie in in terms of generalized harmonic sums of order at most . We show that is invariant under the reflection and the rotation , so that with every point it contains its full orbit under the dihedral group . Applied to the vertices, our criterion gives a result of Jacobsthal-Ljunggren type modulo . In particular, we recover Zhao’s result if and only if is a Wolstenholme prime. We also study the centroid and the edge midpoints, whose membership in and is governed by Bernoulli numbers and polynomials, Wolstenholme primes and super Wieferich primes. In particular, for the centroid lies in , answering a question of Rowland.

生成讲解博客的中文版本

生成AI智能校验的中文版本