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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A015910 2^n mod n. 37
0, 0, 2, 0, 2, 4, 2, 0, 8, 4, 2, 4, 2, 4, 8, 0, 2, 10, 2, 16, 8, 4, 2, 16, 7, 4, 26, 16, 2, 4, 2, 0, 8, 4, 18, 28, 2, 4, 8, 16, 2, 22, 2, 16, 17, 4, 2, 16, 30, 24, 8, 16, 2, 28, 43, 32, 8, 4, 2, 16, 2, 4, 8, 0, 32, 64, 2, 16, 8, 44, 2, 64, 2, 4, 68, 16, 18, 64, 2, 16, 80, 4, 2, 64 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

Known solutions to 2^n = 3 (mod n) are given in A050259.

For n an odd prime, a(n) = 2. - Paolo P. Lava (paoloplava(AT)gmail.com), Feb 09 2007

This sequence is conjectured to include every integer k >= 0 except for k = 1. A036236 includes a proof that k = 1 is not in this sequence, and n = A036236(k) solves a(n) = k for all other 0 <= k <= 1000. David W. Wilson (davidwwilson(AT)comcast.net), Oct 11 2011

REFERENCES

R. K. Guy, Unsolved Problems in Number Theory, F10.

LINKS

T. D. Noe, Table of n, a(n) for n=1..10000

Albert Frank, International Contest Of Logical Sequences, 2002 - 2003. Item 4

Albert Frank, Solutions of International Contest Of Logical Sequences, 2002 - 2003.

Peter L. Montgomery, 65-digit solution.

MAPLE

a:=n->2^n mod(n): seq(a(n), n=1..84); - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Feb 15 2008

seq(irem(2^n, n), n=1..84); - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Apr 20 2008

MATHEMATICA

Table[PowerMod[2, n, n], {n, 85} ]

PROG

(Maxima) makelist(power_mod (2, n, n), n, 1, 84);  [Bruno Berselli, May 20 2011]

(PARI) a(n)=lift(Mod(2, n)^n) \\ Charles R Greathouse IV, Jul 15 2011

CROSSREFS

Cf. A036236, A015911.

Sequence in context: A144182 A037036 A055947 * A164993 A023987 A021498

Adjacent sequences:  A015907 A015908 A015909 * A015911 A015912 A015913

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com)

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 14 23:53 EST 2012. Contains 205689 sequences.