login
n^5 mod 11.
1

%I #13 Dec 18 2023 17:51:29

%S 0,1,10,1,1,1,10,10,10,1,10,0,1,10,1,1,1,10,10,10,1,10,0,1,10,1,1,1,

%T 10,10,10,1,10,0,1,10,1,1,1,10,10,10,1,10,0,1,10,1,1,1,10,10,10,1,10,

%U 0,1,10,1,1,1,10,10,10,1,10,0,1,10,1,1,1,10,10,10,1,10,0,1,10,1,1,1,10,10

%N n^5 mod 11.

%C Periodic, with period = 11 (0, 1, 10, 1, 1, 1, 10, 10, 10, 1, 10). - _Harvey P. Dale_, Jan 01 2017

%H <a href="/index/Rec#order_11">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).

%t PowerMod[Range[0,90],5,11] (* or *) PadRight[{},100,{0,1,10,1,1,1,10,10,10,1,10}] (* _Harvey P. Dale_, Jan 01 2017 *)

%o (Sage) [power_mod(n,5,11)for n in range(0, 85)] # - _Zerinvary Lajos_, Jun 08 2009

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

%K nonn,easy

%O 0,3

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