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.

A028736 Nonsquares mod 23.

Original entry on oeis.org

5, 7, 10, 11, 14, 15, 17, 19, 20, 21, 22
Offset: 1

Views

Author

Keywords

Examples

			Since 11 is not a perfect square and there are no solutions to x^2 = 11 mod 23, 11 is in the sequence.
Although 12 is not a perfect square either, there are solutions to x^2 = 12 mod 23, such as x = 9, x = 14. Thus 12 is not in the sequence.
		

References

  • Srinivasa Ramanujan, Collected Papers, Ed. G. H. Hardy et al., Cambridge 1927; Chelsea, NY, 1962. See "Congruence properties of partitions", p. 230. - N. J. A. Sloane, Jun 01 2014

Crossrefs

Programs

  • Mathematica
    Select[Range[22], JacobiSymbol[#, 23] != 1 &] (* Jean-François Alcover, Oct 07 2018 *)
  • Scala
    val squaresMod23 = (0 to 22).map(n => n * n).map(_ % 23)
    (0 to 22).diff(squaresMod23) // Alonso del Arte, Nov 23 2019