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.

A037041 Number of quadratic residues mod n for some n (A000224 sorted and duplicates removed).

This page as a plain text file.
%I A037041 #9 Jul 21 2025 16:11:15
%S A037041 1,2,3,4,6,7,8,9,10,11,12,14,15,16,18,19,20,21,22,23,24,27,28,30,31,
%T A037041 32,33,34,36,37,38,40,42,44,45,46,48,49,51,52,53,54,55,56,57,60,62,63,
%U A037041 64,66,68,69,70,72,74,75,76,77,79,80,81,82,84,87,88,90,91,92,93,96,97,98
%N A037041 Number of quadratic residues mod n for some n (A000224 sorted and duplicates removed).
%H A037041 Robert Israel, <a href="/A037041/b037041.txt">Table of n, a(n) for n = 1..1802</a>
%p A037041 N:= 100: # for terms <= N
%p A037041 S:= {}:
%p A037041 for i from 1 to N^2 do
%p A037041   v:= A000224(i);
%p A037041   if v <= N then
%p A037041     S:= S union {v}
%p A037041   fi;
%p A037041 od:
%p A037041 sort(convert(S,list)); # _Robert Israel_, Jul 20 2025
%K A037041 nonn
%O A037041 1,2
%A A037041 _David W. Wilson_