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

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010386 Squares mod 24. 1
0, 1, 4, 9, 12, 16 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Table of n, a(n) for n=1..6.

MAPLE

sort(convert({seq(i^2 mod 24, i=0..12)}, list)); # Robert Israel, Apr 19 2017

MATHEMATICA

Union[PowerMod[Range[24], 2, 24]] (* Alonso del Arte, Apr 06 2017 *)

PROG

(Sage) [quadratic_residues(24)] # Zerinvary Lajos, May 24 2009

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

CROSSREFS

Cf. A028737, A070446.

Sequence in context: A312852 A312853 A312854 * A094120 A066423 A072498

Adjacent sequences:  A010383 A010384 A010385 * A010387 A010388 A010389

KEYWORD

nonn,fini,full,easy

AUTHOR

N. J. A. Sloane

STATUS

approved

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 January 17 03:14 EST 2021. Contains 340214 sequences. (Running on oeis4.)