login
a(n) = n^6 mod 40.
0

%I #14 Dec 26 2023 19:59:28

%S 0,1,24,9,16,25,16,9,24,1,0,1,24,9,16,25,16,9,24,1,0,1,24,9,16,25,16,

%T 9,24,1,0,1,24,9,16,25,16,9,24,1,0,1,24,9,16,25,16,9,24,1,0,1,24,9,16,

%U 25,16,9,24,1,0,1,24,9,16,25,16,9,24,1,0,1,24,9,16,25,16,9,24,1,0,1,24,9

%N a(n) = n^6 mod 40.

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

%F a(n) = a(n-10). - _Wesley Ivan Hurt_, Dec 26 2023

%t PowerMod[Range[0, 100], 6, 40] (* _Wesley Ivan Hurt_, Dec 26 2023 *)

%o (Sage) [power_mod(n,6,40)for n in range(0, 84)] # _Zerinvary Lajos_, Nov 07 2009

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

%K nonn,easy

%O 0,3

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