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!)
A010380 Squares mod 18. 1

%I #20 Dec 18 2019 21:51:53

%S 0,1,4,7,9,10,13,16

%N Squares mod 18.

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

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

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

%Y Row 18 of A096008.

%Y Cf. A028731.

%K nonn,fini,full

%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 July 13 18:54 EDT 2024. Contains 374285 sequences. (Running on oeis4.)