%I #26 Feb 27 2024 03:05:20
%S 1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,
%T 5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,9,5,1,7,3,
%U 9,5,1,7,3,9,5,1,7,3,9,5
%N Period 5: repeat [1, 7, 3, 9, 5].
%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,1).
%F a(n) = (1-4n) mod 10. - _Wesley Ivan Hurt_, Dec 03 2022
%t PadRight[{},100,{1,7,3,9,5}] (* _Harvey P. Dale_, Aug 14 2023 *)
%o (PARI) a(n)=[1,7,3,9,5][n%5+1] \\ _Charles R Greathouse IV_, Jun 02 2011
%K nonn,easy,less
%O 0,2
%A _Paul Curtz_, May 21 2008
|