|
|
A154629
|
|
Period 9: repeat [9, 3, 1, 3, 3, 1, 3, 9, 1].
|
|
1
|
|
|
9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3, 1, 3, 9, 1, 9, 3, 1, 3, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Greatest common divisor of (n+1)^2-1 and (n+1)^2+8. - Bruno Berselli, Mar 08 2017
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (9 + 3*x + x^2 + 3*x^3 + 3*x^4 + x^5 + 3*x^6 + 9*x^7 + x^8) / ((1 - x)*(1 + x + x^2)*(1 + x^3 + x^6)).
a(n) = a(n-9) for n>8.
(End)
|
|
MATHEMATICA
|
With[{n=5}, PadLeft[{}, 9n, {9, 3, 1, 3, 3, 1, 3, 9, 1}]] (* Harvey P. Dale, Oct 22 2011 *)
|
|
PROG
|
(PARI) Vec((9 + 3*x + x^2 + 3*x^3 + 3*x^4 + x^5 + 3*x^6 + 9*x^7 + x^8) / ((1 - x)*(1 + x + x^2)*(1 + x^3 + x^6)) + O(x^100)) \\ Colin Barker, Dec 21 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|