A135449 Period 5: repeat [1, 9, -7, 3, 5].
1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1, 9, -7, 3, 5, 1
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,1).
Programs
-
Maple
A135449 := proc(n) op((n mod 5)+1,[1,9,-7,3,5]) ; end: seq(A135449(n),n=0..150) ; # R. J. Mathar, Feb 07 2009
-
PARI
a(n)=[1,9,-7,3,5][n%5+1] \\ Charles R Greathouse IV, Jun 02 2011
Formula
a(n) == 9a(n-1) mod 11.
O.g.f.: -(1+9*x-7*x^2+3*x^3+5*x^4)/((x-1)*(1+x+x^2+x^3+x^4)). - R. J. Mathar, Jan 07 2008
Extensions
More periods from R. J. Mathar, Feb 07 2009