|
|
A005193
|
|
a(n) is the number of alpha-labelings of graphs with n edges.
(Formerly M1231)
|
|
8
|
|
|
1, 2, 4, 10, 30, 106, 426, 1930, 9690, 53578, 322650, 2106250, 14790810, 111327178, 893091930, 7614236170, 68695024410, 654301474378, 6557096219610, 69005893630090, 760519875693210, 8763511069234378, 105343011537811290, 1319139904954848010
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Old name was: Balanced labeled graphs. New name taken from Mar 06 2021 comment from Don Knuth.
|
|
REFERENCES
|
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
|
|
LINKS
|
|
|
FORMULA
|
If n is even then a(n) = 2*Sum_{j=1..floor(n/2)} j!^2*j^(n-2*j), otherwise a(n) = 2*Sum_{j=1..floor(n/2)} j!^2*j^(n-2*j) + ((n+1)/2)!*((n-1)/2)!. - Jonathan Vos Post, Nov 13 2007
|
|
MAPLE
|
2*add((j!)^2*j^(q-2*j), j=1..q/2) ;
if type(q, 'odd') then
%+((q+1)/2)!*((q-1)/2)! ;
else
% ;
end if;
end proc:
|
|
MATHEMATICA
|
a[n_] := 2 Sum[(j!)^2*j^(n-2j), {j, 1, n/2}] + Boole[OddQ[n]]*((n+1)/2)! * ((n-1)/2)!;
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|