login
a(n) = n^4 mod 31.
0

%I #15 Dec 18 2023 17:28:27

%S 0,1,16,19,8,5,25,14,4,20,18,9,28,10,7,2,2,7,10,28,9,18,20,4,14,25,5,

%T 8,19,16,1,0,1,16,19,8,5,25,14,4,20,18,9,28,10,7,2,2,7,10,28,9,18,20,

%U 4,14,25,5,8,19,16,1,0,1,16,19,8,5,25,14,4,20,18,9,28,10,7,2,2,7,10,28,9

%N a(n) = n^4 mod 31.

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

%t PowerMod[Range[0,90],4,31] (* _Harvey P. Dale_, Mar 01 2015 *)

%o (Sage) [power_mod(n,4,31)for n in range(0, 83)] # - _Zerinvary Lajos_, Nov 01 2009

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

%K nonn,easy

%O 0,3

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