%I #15 Dec 26 2023 21:04:37
%S 0,1,2,16,4,1,1,4,8,8,2,4,2,16,8,16,16,8,16,2,4,2,8,8,4,1,1,4,16,2,1,
%T 0,1,2,16,4,1,1,4,8,8,2,4,2,16,8,16,16,8,16,2,4,2,8,8,4,1,1,4,16,2,1,
%U 0,1,2,16,4,1,1,4,8,8,2,4,2,16,8,16,16,8,16,2,4,2,8,8,4,1,1,4,16,2,1,0,1,2
%N a(n) = n^6 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).
%F a(n) = a(n-31). - _Wesley Ivan Hurt_, Dec 26 2023
%t PowerMod[Range[0,100],6,31] (* _Harvey P. Dale_, May 19 2021 *)
%o (Sage) [power_mod(n,6,31)for n in range(0, 96)] # _Zerinvary Lajos_, Nov 07 2009
%o (PARI) a(n)=n^6%31 \\ _Charles R Greathouse IV_, Apr 06 2016
%K nonn,easy
%O 0,3
%A _N. J. A. Sloane_, May 13 2002
|