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 A166865 #11 Mar 30 2012 18:52:34 %S A166865 0,0,1,2,0,2,0,3,1,3,2,3,0,2,1,2,3,5,1,5,1,1,6,6,0,1,6,6,0,3,5,7,3,5, %T A166865 1,3,8,0,8,1,8,1,8,1,8,8,7,5,3,1,7,3,9,7,9,6,4,9,8,0,6,2,7,1,8,5,8,3, %U A166865 5,7,11,1,5,7,11,5,7,1 %N A166865 Triangle read by rows: R(n,k)=prime(k)^(prime(n)-2) mod n, 1<=k<=n. %C A166865 Row sums: 0, 1, 4, 7, 8, 17, 26, 27, 43, 59, 56, 71, …, . %e A166865 Triangle begins: %e A166865 0, %e A166865 0, 1, %e A166865 2, 0, 2, %e A166865 0, 3, 1, 3, %e A166865 2, 3, 0, 2, 1, %e A166865 2, 3, 5, 1, 5, 1, %t A166865 t[n_, k_] := Mod[Prime@ k^(Prime@ n - 2), n]; Table[ t[n, k], {n, 12}, {k, n}] // Flatten %Y A166865 Cf. A000079, A177226. %K A166865 nonn,tabl %O A166865 1,4 %A A166865 _Juri-Stepan Gerasimov_, Dec 16 2010