login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010386 Squares mod 24. 1

%I

%S 0,1,4,9,12,16

%N Squares mod 24.

%p sort(convert({seq(i^2 mod 24,i=0..12)},list)); # _Robert Israel_, Apr 19 2017

%t Union[PowerMod[Range[24], 2, 24]] (* _Alonso del Arte_, Apr 06 2017 *)

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

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

%Y Cf. A028737, A070446.

%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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 3 04:26 EST 2021. Contains 341756 sequences. (Running on oeis4.)