Computing solutions to the congruence 1n+2n+⋯+nn≡p(modn){1^n + 2^n + \dotsb + n^n\equiv p \pmod{n}}

preprint2018arXivOpen access

Abstract

It is well-known that the congruence ∑i=1nin≡1(modn)\sum_{i=1}^{ n} i^{ n} \equiv 1 \pmod{n} has exactly five solutions: {1,2,6,42,1806}\{1,2,6,42,1806\}. In this work, we characterize the solutions to the congruence 1n+2n+⋯+nn≡p(modn)1^n + 2^n + \dotsb + n^n\equiv p \pmod{n} for every prime pp. This characterization leads to an algorithm for computing all such solutions, when there is a finite number of them. More generally, our algorithm enables computing all the solutions below a much higher bound as compared to what can be achieved by a naive exhaustive search.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.