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.

A242860 a(n) is the least k >= 2 such that k is neither a square modulo n nor a primitive root (mod n), or 0 if no such value exists.

This page as a plain text file.
%I A242860 #8 Feb 16 2025 08:33:22
%S A242860 0,2,0,2,6,2,3,2,10,2,5,6,2,2,0,2,8,2,2,2,22,2,5,2,3,2,12,2,6,2,2,6,2,
%T A242860 2,6,2,2,2,3,2,2,2,2,10,46,2,6,2,2,2,23,2,2,2,2,2,58,2,8,6,2,2,2,2,3,
%U A242860 2,2,2,14,2,7,2,2,2,2,2,12,2,3,3,82,2,2,2
%N A242860 a(n) is the least k >= 2 such that k is neither a square modulo n nor a primitive root (mod n), or 0 if no such value exists.
%C A242860 a(A019434(n)) = 0 for n >= 1.
%H A242860 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PrimitiveRoot.html">Primitive Root</a>
%o A242860 (Magma) lst:=[]; for n in [3..86] do v:=0; for r in [2..n-1] do if not IsSquare(ResidueClassRing(n)! r) and not IsPrimitive(r, n) then v:=r; break; end if; end for; lst:=Append(lst, v); end for; lst;
%Y A242860 Cf. A028730, A136804, A136806.
%K A242860 nonn
%O A242860 3,2
%A A242860 _Arkadiusz Wesolowski_, May 24 2014