|
|
A274583
|
|
Expansion of (1 + x + x^2 - x^3 - x^4 + x^6)/((1 - x)^3*(1 + x + x^2)^2).
|
|
1
|
|
|
1, 2, 3, 4, 5, 7, 9, 10, 13, 16, 17, 21, 25, 26, 31, 36, 37, 43, 49, 50, 57, 64, 65, 73, 81, 82, 91, 100, 101, 111, 121, 122, 133, 144, 145, 157, 169, 170, 183, 196, 197, 211, 225, 226, 241, 256, 257, 273, 289, 290, 307, 324, 325, 343, 361, 362, 381, 400, 401, 421, 441, 442, 463, 484, 485
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 + x + x^2 - x^3 - x^4 + x^6)/((1 - x)^3*(1 + x + x^2)^2).
a(n) = a(n-1) + 2*a(n-3) - 2*a(n-4) - a(n-6) + a(n-7).
a(n) = 1 + 10*n/9 - n^2/9 + (n/3 - 8/9)*floor(n/3) + (n/3 - 4/9)*floor((n+1)/3). - Vaclav Kotesovec, Jun 29 2016
|
|
EXAMPLE
|
Illustration of initial terms:
-------------------------------------------------------------------
o o o o o o
o o o o o o o o o o o o o o o o
o o o o o o o o o o o o o o o o o o o o o o o
o o o o o o o o o o o o o o o o o o o o o o o o o
-------------------------------------------------------------------
-------------------------------------------------------------------
0 1 2 3 4 5 6 7 8 9
|
|
MATHEMATICA
|
LinearRecurrence[{1, 0, 2, -2, 0, -1, 1}, {1, 2, 3, 4, 5, 7, 9}, 65]
Table[1 + 10*n/9 - n^2/9 + (n/3 - 8/9)*Floor[n/3] + (n/3 - 4/9)*Floor[(n+1)/3], {n, 0, 100}] (* Vaclav Kotesovec, Jun 29 2016 *)
|
|
PROG
|
(PARI) Vec((1+x+x^2-x^3-x^4+x^6)/((1-x)^3*(1+x+x^2)^2) + O(x^99)) \\ Altug Alkan, Jul 05 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|