%I #9 Dec 18 2023 17:39:58
%S 0,1,16,39,4,37,36,7,22,9,4,25,30,1,28,15,16,25,18,37,22,21,22,37,18,
%T 25,16,15,28,1,30,25,4,9,22,7,36,37,4,39,16,1,0,1,16,39,4,37,36,7,22,
%U 9,4,25,30,1,28,15,16,25,18,37,22,21,22,37,18,25,16,15,28,1,30,25,4,9,22
%N a(n) = n^4 mod 42.
%H <a href="/index/Rec#order_42">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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
%o (PARI) a(n)=n^4%42 \\ _Charles R Greathouse IV_, Apr 06 2016
%K nonn,easy
%O 0,3
%A _N. J. A. Sloane_, May 13 2002