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 A070371 #41 Sep 08 2022 08:45:05 %S A070371 1,5,8,6,13,14,2,10,16,12,9,11,4,3,15,7,1,5,8,6,13,14,2,10,16,12,9,11, %T A070371 4,3,15,7,1,5,8,6,13,14,2,10,16,12,9,11,4,3,15,7,1,5,8,6,13,14,2,10, %U A070371 16,12,9,11,4,3,15,7,1,5,8,6,13,14,2,10,16,12,9,11,4,3,15,7,1,5,8,6,13,14 %N A070371 a(n) = 5^n mod 17. %C A070371 Periodic with period 16 (5 is a primitive root of 17). [_Joerg Arndt_, Mar 06 2016] %H A070371 G. C. Greubel, <a href="/A070371/b070371.txt">Table of n, a(n) for n = 0..999</a> %H A070371 <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,0,0,0,0,-1,1). [From _R. J. Mathar_, Apr 20 2010] %F A070371 From _R. J. Mathar_, Apr 20 2010: (Start) %F A070371 a(n) = a(n-1) - a(n-8) + a(n-9). %F A070371 G.f.: (-1-4*x-3*x^2+2*x^3-7*x^4-x^5+12*x^6-8*x^7-7*x^8) / ((x-1)*(1+x^8)). (End) %F A070371 a(n) = a(n-16). - _G. C. Greubel_, Mar 05 2016 %t A070371 PowerMod[5,Range[0,90],17] (* or *) LinearRecurrence[ {1,0,0,0,0,0,0,-1,1},{1,5,8,6,13,14,2,10,16},90] (* _Harvey P. Dale_, Jun 26 2013 *) %t A070371 Table[Mod[5^n, 17], {n, 0, 100}] (* _G. C. Greubel_, Mar 05 2016 *) %o A070371 (Sage) [power_mod(5,n,17) for n in range(0,86)] # _Zerinvary Lajos_, Nov 26 2009 %o A070371 (PARI) a(n) = lift(Mod(5, 17)^n); \\ _Michel Marcus_, Mar 05 2016 %o A070371 (PARI) x='x+O('x^100); Vec((-1-4*x-3*x^2+2*x^3-7*x^4-x^5+12*x^6-8*x^7-7*x^8)/((x-1)*(1+x^8))) \\ _Altug Alkan_, Mar 05 2016 %o A070371 (Magma) &cat[[1,5,8,6,13,14,2,10,16,12,9,11,4,3,15,7]^^5]; // _Vincenzo Librandi_, Mar 06 2016 %Y A070371 Cf. A000351. %K A070371 nonn,easy %O A070371 0,2 %A A070371 _N. J. A. Sloane_, May 12 2002