|
| |
|
|
A144478
|
|
Period 9: repeat 1,0,5,7,6,2,4,3,8.
|
|
1
| |
|
|
1, 0, 5, 7, 6, 2, 4, 3, 8, 1, 0, 5, 7, 6, 2, 4, 3, 8, 1, 0, 5, 7, 6, 2, 4, 3, 8, 1, 0, 5, 7, 6, 2, 4, 3, 8, 1, 0, 5, 7, 6, 2, 4, 3, 8, 1, 0, 5, 7, 6, 2, 4, 3, 8
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,3
|
|
|
COMMENTS
| Essentially the same as A145577.
|
|
|
LINKS
| Index entries for sequences related to linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
|
|
|
FORMULA
| a(n) = A144390(n) mod 9.
a(9n+2)+a(9n+3)+a(9n+4) = a(9n+5)+a(9n+6)+a(9n+7) = a(9n+8)+a(9n+9)+a(9n+10) = 12.
a(n+4)-a(n+1) = period length 9 (repeat 6,-3,-3,-3,6,-3,-3,-3,6).
a(n)=(1/9)*{8*(n mod 9)-4*[(n+1) mod 9]+2*[(n+2) mod 9]-[(n+3) mod 9]+5*[(n+4) mod 9]+2*[(n+5) mod 9]-[(n+6) mod 9]-4*[(n+7) mod 9]+2*[(n+8) mod 9]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Oct 13 2008]
|
|
|
PROG
| (PARI) a(n)=[1, 0, 5, 7, 6, 2, 4, 3, 8][n%9+1] \\ Charles R Greathouse IV, Jun 02 2011
|
|
|
CROSSREFS
| Sequence in context: A139428 A063005 A145577 * A059249 A175294 A196615
Adjacent sequences: A144475 A144476 A144477 * A144479 A144480 A144481
|
|
|
KEYWORD
| nonn,easy,less
|
|
|
AUTHOR
| Paul Curtz (bpcrtz(AT)free.fr), Oct 11 2008
|
| |
|
|