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.

A010411 Squares mod 50.

Original entry on oeis.org

0, 1, 4, 6, 9, 11, 14, 16, 19, 21, 24, 25, 26, 29, 31, 34, 36, 39, 41, 44, 46, 49
Offset: 1

Views

Author

Keywords

Crossrefs

Row 50 of A096008.
Cf. A028763.

Programs

  • Magma
    [ n: n in [0..49] | IsSquare(R! n) where R:= ResidueClassRing(50)]; // Vincenzo Librandi, Dec 28 2019
  • Mathematica
    Union[PowerMod[Range[50], 2, 50]]
  • Sage
    [quadratic_residues(50)] # Zerinvary Lajos, May 24 2009
    
  • Scala
    (1 to 50).map(n => (n * n) % 50).toSet.toSeq.sorted // Alonso del Arte, Dec 25 2019