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 A096385 #23 Apr 23 2022 14:45:57 %S A096385 3,7,3,11,5,29,3,7,11,23,5,53,13,31,3,103,5,191,3,37,23,47,5,11,53,7, %T A096385 13,59,11,311,3,67,67,71,5,149,37,61,3,83,5,173,23,31,47,283,5,29,11, %U A096385 103,5,107,5,31,13,7,59,709,7,367,61,37,3,131,23,269,13,139,29,569 %N A096385 a(n) = smallest prime p with p^n mod n = 1. %H A096385 Harvey P. Dale, <a href="/A096385/b096385.txt">Table of n, a(n) for n = 2..1000</a> %e A096385 n=5: 2^5=32=5*6+2, 3^5=243=5*48+3, 5^5 mod 5 = 0, 7^5=16807=5*3361+2, 11^5=161051=5*32210+1: a(5)=11. %t A096385 With[{prs=Prime[Range[200]]},Table[SelectFirst[prs,PowerMod[#,n,n]==1&],{n,2,80}]] (* The program uses the SelectFirst function from Mathematica version 10 *) (* _Harvey P. Dale_, Aug 31 2015 *) %o A096385 (PARI) a(n) = my(p=2); while (Mod(p,n)^n !=1, p=nextprime(p+1)); p; \\ _Michel Marcus_, Feb 07 2021 %Y A096385 Cf. A015910, A066601, A066603, A066438, A066441. %K A096385 nonn %O A096385 2,1 %A A096385 _Reinhard Zumkeller_, Aug 05 2004