|
| |
| |
|
|
|
0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4, 0, 3, 6, 2, 5, 1, 4
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
COMMENTS
| Period 7: repeat [0, 3, 6, 2, 5, 1, 4].
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (0,0,0,0,0,0,1).
|
|
|
FORMULA
| G.f. (3*x+6*x^2+2*x^3+5*x^4+x^5+4*x^6)/(1-x^7).
a(n) = mod(n*(7*n-1)/2, 7) = mod(A022264(n), 7).
|
|
|
PROG
| (PARI) a(n)=3*n%7 \\ Charles R Greathouse IV, Jul 23, 2011
|
|
|
CROSSREFS
| Sequence in context: A154858 A169837 A160590 * A068466 A194076 A194040
Adjacent sequences: A111949 A111950 A111951 * A111953 A111954 A111955
|
|
|
KEYWORD
| easy,nonn
|
|
|
AUTHOR
| Paul Barry (pbarry(AT)wit.ie), Aug 22 2005
|
| |
|
|