Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A091940
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A091940 Given n colors, sequence gives number of ways to color the vertices of a square such that no edge has the same color on both of its vertices. +0
13
0, 2, 18, 84, 260, 630, 1302, 2408, 4104, 6570, 10010, 14652, 20748, 28574, 38430, 50640, 65552, 83538, 104994, 130340, 160020, 194502, 234278, 279864, 331800, 390650, 457002, 531468, 614684, 707310, 810030, 923552, 1048608, 1185954 (list; graph; listen)
OFFSET

1,2

FORMULA

a(n) = 2*(n choose 2) + 12*(n choose 3) + 24*(n choose 4) = n*(n-1)*(n^2-3*n+3).

a(n+1) = n + n^4 - Rainer Rosenthal (r.rosenthal(AT)web.de), Dec 03 2006

G.f.: 2x^2(1+4x+7x^2)/(1-x)^5. a(n)=2*A027441(n-1). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Sep 09 2008]

EXAMPLE

a(4)=84 since there are 84 different ways to color the vertices of a square with 4 colors such that no two vertices that share an edge are the same color.

MAPLE

a := n -> sum((n-1)^(k^2), k=1..2); for n to 35 do a(n) end do; - Rainer Rosenthal (r.rosenthal(AT)web.de), Dec 03 2006

MATHEMATICA

Table[ 2Binomial[n, 2] + 12Binomial[n, 3] + 24Binomial[n, 4], {n, 35}] (from Robert G. Wilson v Mar 16 2004)

CROSSREFS

Sequence in context: A024171 A056664 A064057 this_sequence A068605 A070171 A036800

Adjacent sequences: A091937 A091938 A091939 this_sequence A091941 A091942 A091943

KEYWORD

nonn,easy

AUTHOR

Ryan Witko (witko(AT)nyu.edu), Mar 11 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Mar 16 2004

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 December 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research