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.
%I A240666 #4 Apr 16 2014 05:40:40 %S A240666 3,2,2,3,2,2,2,2,5,2,3,2,2,2,5,2,2,2,2,7,3,3,2,3,2,2,3,2,2,2,3,2,2,2, %T A240666 2,3,2,2,5,2,2,2,7,2,2,3,2,3,2,2,3,7,2,2,2,5,2,3,2,2,2,2,2,11,2,2,2,3, %U A240666 2,2,2,7,3,2,2,5,2,2,2,2,2,2,7,2,3,2,2 %N A240666 Least k such that k^m == -1 (mod prime(n)) has a solution for some m. %C A240666 Looking at sequences A240657-A240665, one sees many 0 terms. This sequence finds the least k having a solution. Is the least k always prime? %H A240666 T. D. Noe, <a href="/A240666/b240666.txt">Table of n, a(n) for n = 1..10000</a> %t A240666 Table[p = Prime[n]; k = 2; While[s = Select[Range[p/2], PowerMod[k, #, p] == p - 1 &, 1]; s == {}, k++]; k, {n, 100}] %Y A240666 Cf. A240657-A240665. %K A240666 nonn %O A240666 1,1 %A A240666 _T. D. Noe_, Apr 15 2014