|
|
A131711
|
|
Period 12: repeat 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1.
|
|
5
|
|
|
0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1, 0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
Final digits of Pell numbers. First differences: 1, 1, 3, -3, 7, -9, 9, -1, -3, 3 -7, -1, 1 (cf. A131707).
Can be though of as 2 interlocking sequences, each of the form a(n) = a(n - 1) - a(n - 2) + a(n - 3) - a(n - 4) + a(n - 5).
|
|
LINKS
|
Index entries for linear recurrences with constant coefficients, signature (0,1,0,-1,0,1,0,-1,0,1).
|
|
FORMULA
|
a(n) = 25/6 -4*cos(Pi*n/6)/sqrt(3) -sqrt(3)*sin(Pi*n/6) -5*cos(Pi*n/3)/3 -5*cos(2*Pi*n/3)/3 +4*cos(5*Pi*n/6)/sqrt(3) +sqrt(3)*sin(5*Pi*n/6) -5*(-1)^n/6. - R. J. Mathar, Oct 08 2011
|
|
MATHEMATICA
|
PadRight[{}, 120, {0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1}] (* Harvey P. Dale, Dec 29 2014 *)
|
|
PROG
|
(PARI) [0, 1, 2, 5, 2, 9, 0, 9, 8, 5, 8, 1][n%12+1] \\ Charles R Greathouse IV, Jun 02 2011
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,less
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|