A131757 Period 10: repeat 3, 3, 3, -7, 3, 3, -7, 3, 3, -7.
3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3, 3, 3, -7, 3, 3, -7, 3, 3, -7, 3
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1,-1,-1,-1,-1,-1,-1).
Programs
-
Mathematica
PadRight[{},120,{3,3,3,-7,3,3,-7,3,3,-7}] (* Harvey P. Dale, Aug 07 2018 *)
-
PARI
a(n)=[3, 3, 3, -7, 3, 3, -7, 3, 3, -7][n%10+1] \\ Charles R Greathouse IV, Jul 13 2016