Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120766
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120766 Number of ways to seat n people around a circular table such that person i is next to person i-1 or i+1 or both. +0
1
1, 1, 2, 6, 12, 36, 86, 270, 746, 2554, 8032, 29716, 103482, 409242, 1550850, 6508702, 26509428, 117368404, 508962350, 2365560998, 10842378698, 52685516658, 253754085960, 1284660919140, 6471281910962, 34031293950258 (list; graph; listen)
OFFSET

1,3

FORMULA

For n>=3, a(n)=2+2*Sum_{k=2..[n/2]} (C(n-k,k) + C(n-k-1,k-1))*A061714(k)

PROGRAM

(PARI) { a(n) = if(n<3, 1, 2 + 2*sum(k=2, n\2, (binomial(n-k, k)+binomial(n-k-1, k-1)) * ((-1)^k+sum(i=0, k-1, (-1)^(k-1-i)*binomial(k, i+1)*i!*2^i)) ) ) }

CROSSREFS

Adjacent sequences: A120763 A120764 A120765 this_sequence A120767 A120768 A120769

Sequence in context: A076278 A099576 A026549 this_sequence A121404 A074442 A123045

KEYWORD

nonn

AUTHOR

Max Alekseyev (maxal(AT)cs.ucsd.edu), Jul 03 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 11 13:47 EDT 2008. Contains 144830 sequences.


AT&T Labs Research