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 A167166 #21 Dec 07 2019 12:18:26 %S A167166 0,1,0,11,0,13,0,7,0,9,0,3,0,5,0,15,0,1,0,11,0,13,0,7,0,9,0,3,0,5,0, %T A167166 15,0,1,0,11,0,13,0,7,0,9,0,3,0,5,0,15,0,1,0,11,0,13,0,7,0,9,0,3,0,5, %U A167166 0,15,0,1,0,11,0,13,0,7,0,9,0,3,0,5,0,15,0,1,0,11,0,13,0,7,0,9,0,3,0 %N A167166 a(n) = n^7 mod 16. %C A167166 Equivalently: n^(4*m+7) mod 16. - _G. C. Greubel_, Jun 04 2016 %H A167166 <a href="/index/Rec#order_16">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1). %F A167166 From _R. J. Mathar_, Sep 30 2013: (Start) %F A167166 a(n) = a(n-16). %F A167166 G.f. -x*(1 +11*x^2 +13*x^4 +7*x^6 +9*x^8 +3*x^10 +5*x^12 +15*x^14) / ( (x-1)*(1+x)*(1+x^2)*(1+x^4)*(1+x^8) ). (End) %F A167166 a(n) = A130909(A001015(n)). - _Michel Marcus_, Jun 04 2016 %t A167166 Table[Mod[n^7, 16], {n, 0, 10}] (* _G. C. Greubel_, Jun 04 2016 *) %t A167166 PowerMod[Range[0,100],7,16] (* or *) PadRight[{},100,{0,1,0,11,0,13,0,7,0,9,0,3,0,5,0,15}] (* _Harvey P. Dale_, Jul 29 2018 *) %o A167166 (Sage) [power_mod(n,7,16)for n in range(0, 93)] # %o A167166 (PARI) a(n)=n^7%16 \\ _Charles R Greathouse IV_, Apr 06 2016 %K A167166 nonn,easy %O A167166 0,4 %A A167166 _Zerinvary Lajos_, Oct 29 2009