|
|
A164359
|
|
Expansion of (1 - x^2)^3 / ((1 - x)^3 * (1 - x^3)) in powers of x.
|
|
4
|
|
|
1, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
Euler transform of length 3 sequence [ 3, -3, 1].
Moebius transform is length 3 sequence [ 3, 0, -1].
a(-n) = a(n) for all n in Z. a(n+3) = a(n) unless n=0 or n=-3. a(3*n) = 2 unless n=0. a(3*n + 1) = a(3*n + 2) = 3.
G.f.: -1 + (1/3) * ( 8 / (1 - x) - (2 + x) / (1 + x + x^2) ).
|
|
EXAMPLE
|
G.f. = 1 + 3*x + 3*x^2 + 2*x^3 + 3*x^4 + 3*x^5 + 2*x^6 + 3*x^7 + 3*x^8 + 2*x^9 + ...
|
|
MATHEMATICA
|
a[ n_] := -Boole[n == 0] + 2 + KroneckerSymbol[ 9, n]; (* Michael Somos, Apr 17 2015 *)
CoefficientList[Series[(1-x^2)^3/((1-x)^3*(1-x^3)), {x, 0, 120}], x] (* or *) LinearRecurrence[{0, 0, 1}, {1, 3, 3, 2}, 120] (* or *) PadRight[{1}, 120, {2, 3, 3}] (* Harvey P. Dale, Aug 16 2021 *)
|
|
PROG
|
(PARI) {a(n) = -(n==0) + 2 + kronecker(9, n)};
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|