login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A014117 Numbers n such that m^(n+1) = m mod n holds for all m. 7
1, 2, 6, 42, 1806 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

"Somebody incorrectly remembered Fermat's little theorem as saying that the congruence a^{n+1} = a (mod n) holds for all a if n is prime" (Zagier). The sequence gives the set of integers n for which this property is in fact true.

If i = j (mod n), then m^i = m^j (mod n) for all m. The latter congruence generally holds for any (m, n)=1 with i = j (mod k), k being the order of m modulo n, i.e. the least power k for which m^k = 1 (mod n). - Lekraj Beedassy (blekraj(AT)yahoo.com), Jul 04 2002

REFERENCES

J. Dyer-Bennet, "A Theorem in Partitions of the Set of Positive Integers", Amer. Math. Monthly, 47(1940) pp. 152-4.

LINKS

D. Zagier, Problems posed at the St Andrews Colloquium, 1996

MATHEMATICA

(* Checking up to n = 2000 *) r[n_] := Reduce[ Mod[m^(n+1) - m, n] == 0, m, Integers]; ok[n_] := Range[n]-1 === Simplify[ Mod[ Flatten[ m /. {ToRules[ r[n][[2]] ]}], n], Element[C[1], Integers]]; ok[1] = True; A014117 = {}; Do[ If[ok[n], Print[n]; AppendTo[ A014117, n] ], {n, 1, 2000}] (* From Jean-François Alcover, Dec 21 2011 *)

CROSSREFS

Sequence in context: A115961 A123137 * A188672 A054377 A007018 A100016

Adjacent sequences:  A014114 A014115 A014116 * A014118 A014119 A014120

KEYWORD

nonn,fini,full,nice

AUTHOR

David Broadhurst (D.Broadhurst(AT)open.ac.uk)

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 09:41 EST 2012. Contains 206009 sequences.