A139788 Period 5: repeat [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, 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, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,1).
Programs
-
Mathematica
PadRight[{},100,{1,7,3,9,5}] (* Harvey P. Dale, Aug 14 2023 *)
-
PARI
a(n)=[1,7,3,9,5][n%5+1] \\ Charles R Greathouse IV, Jun 02 2011
Formula
a(n) = (1-4n) mod 10. - Wesley Ivan Hurt, Dec 03 2022