A138055 Period 8: repeat 1, 3, 5, 9, 3, 1, 9, 5.
1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,-1,1,-1,1,-1,1).
Crossrefs
Cf. A136252.
Programs
-
Mathematica
PadRight[{},120,{1,3,5,9,3,1,9,5}] (* Harvey P. Dale, Apr 13 2019 *)
-
PARI
a(n)=[1,3,5,9,3,1,9,5][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011