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.

A025022 Numbers whose least quadratic nonresidue (A020649) is 5.

Original entry on oeis.org

23, 46, 47, 73, 94, 97, 146, 167, 193, 194, 263, 313, 334, 337, 383, 386, 433, 457, 503, 526, 529, 577, 626, 647, 673, 674, 743, 766, 863, 866, 887, 914, 937, 983, 1006, 1033, 1058, 1081, 1103, 1153, 1154, 1223, 1294, 1297, 1346, 1367, 1486, 1487, 1583, 1607
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Select[Range[1600], Min @ Complement[Range[# - 1], Mod[Range[#/2]^2, #]] == 5 &] (* Amiram Eldar, Oct 31 2020 *)
  • PARI
    residue(n,m)={local(r);r=0;for(i=1,floor(m/2),if(i^2%m==n,r=1));r}
    isA025022(n)=residue(2,n) && residue(3,n) && !residue(5,n) \\ Michael B. Porter, Apr 18 2010