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 A122606 #5 May 24 2012 12:17:18 %S A122606 0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1,4,1,4,4,6,0,1,1,3,2,6,1,0,1,2,2,1,2, %T A122606 6,0,1,4,6,4,3,1,0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1,4,1,4,4,6,0,1,1,3,2, %U A122606 6,1,0,1,2,2,1,2,6,0,1,4,6,4,3,1,0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1,4,1,4,4,6 %N A122606 n^(n+1) mod 7. %F A122606 a(n) = n^(n+1) mod 7 = A007778(n) mod 7. %F A122606 Periodic with cycle consisting of first 42 terms: {0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1,4,1,4,4,6,0,1,1,3,2,6,1,0,1,2,2,1,2,6,0,1,4,6,4,3,1}. %t A122606 Table[PowerMod[n,n+1,7],{n,0,120}] (* _Harvey P. Dale_, May 24 2012 *) %Y A122606 Cf. A053879, A070472, A007778. %K A122606 nonn %O A122606 0,4 %A A122606 _Zak Seidov_, Sep 24 2006, Sep 25 2006