login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A057757 Least nonnegative square root of 2 mod n for n in A057126. 2

%I #11 Jan 01 2024 20:06:15

%S 0,0,3,4,6,5,8,6,17,18,7,10,8,12,32,9,24,25,40,14,10,38,51,11,16,31,

%T 12,32,46,70,18,13,64,57,52,14,20,38,39,15,62,85,74,99,22,16,60,110,

%U 96,106,132,17,45

%N Least nonnegative square root of 2 mod n for n in A057126.

%H T. D. Noe, <a href="/A057757/b057757.txt">Table of n, a(n) for n=1..1000</a>

%t A057126 = Prepend[ Select[ Range[300], Reduce[ Mod[2 - k^2, #] == 0, k, Integers] =!= False &], 1]; a[n_] := Min[ r /. {ToRules[ Reduce[ Mod[r^2 - 2, A057126[[n]]] == 0, r, Integers] /. C[1] -> 0]}]; a[1] = 0; Table[a[n], {n, 1, 53}] (* _Jean-François Alcover_, Sep 20 2012 *)

%Y Cf. A057126.

%K nonn,easy,nice

%O 1,3

%A _N. J. A. Sloane_, Nov 01 2000

%E Corrected by T. D. Noe, Apr 19 2007 [The errors were caused by the faulty Maple command "mroot"]

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)