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!)
A010403 Squares mod 42. 1

%I #17 Dec 21 2019 15:55:25

%S 0,1,4,7,9,15,16,18,21,22,25,28,30,36,37,39

%N Squares mod 42.

%t Union[PowerMod[Range[42], 2, 42]] (* _Alonso del Arte_, Dec 21 2019 *)

%o (Sage) [quadratic_residues(42)] # _Zerinvary Lajos_, May 24 2009

%o (Scala) (1 to 42).map(n => (n * n) % 42).toSet.toSeq.sorted // _Alonso del Arte_, Dec 21 2019

%Y Cf. A028755.

%K nonn,fini,full,easy

%O 1,3

%A _N. J. A. Sloane_

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 24 07:35 EDT 2024. Contains 371922 sequences. (Running on oeis4.)