%I #15 Dec 26 2023 21:22:26
%S 0,1,20,3,4,5,16,15,14,9,12,11,12,9,14,15,16,5,4,3,20,1,0,1,20,3,4,5,
%T 16,15,14,9,12,11,12,9,14,15,16,5,4,3,20,1,0,1,20,3,4,5,16,15,14,9,12,
%U 11,12,9,14,15,16,5,4,3,20,1,0,1,20,3,4,5,16,15,14,9,12,11,12,9,14,15
%N a(n) = n^6 mod 22.
%H <a href="/index/Rec#order_22">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, 1).
%F a(n) = a(n-22). - _Wesley Ivan Hurt_, Dec 26 2023
%t PowerMod[Range[0,90],6,22] (* _Harvey P. Dale_, Aug 24 2013 *)
%o (Sage) [power_mod(n,6,22)for n in range(0, 82)] # - _Zerinvary Lajos_, Nov 06 2009
%o (PARI) a(n)=n^6%22 \\ _Charles R Greathouse IV_, Apr 06 2016
%K nonn,easy
%O 0,3
%A _N. J. A. Sloane_, May 13 2002