login
a(n) = n^7 mod 17.
1

%I #19 Dec 19 2023 13:52:54

%S 0,1,9,11,13,10,14,12,15,2,5,3,7,4,6,8,16,0,1,9,11,13,10,14,12,15,2,5,

%T 3,7,4,6,8,16,0,1,9,11,13,10,14,12,15,2,5,3,7,4,6,8,16,0,1,9,11,13,10,

%U 14,12,15,2,5,3,7,4,6,8,16,0,1,9,11,13,10,14,12,15,2,5,3,7,4,6,8,16,0

%N a(n) = n^7 mod 17.

%H Vincenzo Librandi, <a href="/A070699/b070699.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_17">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, 0, 1).

%t PowerMod[Range[0, 100], 7, 17] (* _Vincenzo Librandi_, Jun 17 2016 *)

%o (Sage) [power_mod(n,7,17) for n in range(86)] # _Zerinvary Lajos_, Oct 28 2009

%o (PARI) a(n)=n^7%17 \\ _Charles R Greathouse IV_, Apr 06 2016

%o (Magma) [Modexp(n, 7, 17): n in [0..80]]; // _Vincenzo Librandi_, Jun 17 2016

%K nonn,easy

%O 0,3

%A _N. J. A. Sloane_, May 13 2002