cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A010386 Squares mod 24.

This page as a plain text file.
%I A010386 #21 Dec 24 2019 08:31:37
%S A010386 0,1,4,9,12,16
%N A010386 Squares mod 24.
%p A010386 sort(convert({seq(i^2 mod 24,i=0..12)},list)); # _Robert Israel_, Apr 19 2017
%t A010386 Union[PowerMod[Range[24], 2, 24]] (* _Alonso del Arte_, Apr 06 2017 *)
%o A010386 (Sage) [quadratic_residues(24)] # _Zerinvary Lajos_, May 24 2009
%o A010386 (Scala) (1 to 24).map(n => (n * n) % 24).toSet.toSeq.sorted // _Alonso del Arte_, Dec 24 2019
%Y A010386 Cf. A028737, A070446.
%K A010386 nonn,fini,full,easy
%O A010386 1,3
%A A010386 _N. J. A. Sloane_