|
|
A102841
|
|
a(n) = ((9*n^2 + 33*n + 26)*2^n + (-1)^n)/27.
|
|
1
|
|
|
1, 5, 19, 61, 179, 493, 1299, 3309, 8211, 19949, 47635, 112109, 260627, 599533, 1366547, 3089901, 6937107, 15476205, 34331155, 75769325, 166451731, 364127725, 793500179, 1723082221, 3729512979, 8048092653, 17319057939
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
A floretion-generated sequence relating the number of edges and faces in n-dimensional hypercube.
The sum of the sizes of all inversions in compositions of n. - Arnold Knopfmacher, Jan 22 2020
|
|
LINKS
|
|
|
FORMULA
|
G.f.: 1/((1+x)*(1-2*x)^3).
a(n) = 5*a(n-1) - 6*a(n-2) - 4*a(n-3) + 8*a(n-4). - Wesley Ivan Hurt, Jul 03 2020
|
|
MATHEMATICA
|
Table[(1/27)*((9 n^2 + 33 n + 26) 2^n + (-1)^n), {n, 0, 50}] (* or *) LinearRecurrence[{5, -6, -4, 8}, {1, 5, 19, 61}, 50] (* G. C. Greubel, Sep 27 2017 *)
|
|
PROG
|
(Magma) [((9*n^2 + 33*n + 26)*2^n + (-1)^n)/27 : n in [0..40]]; // Wesley Ivan Hurt, Jul 03 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|