Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A106512
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A106512 Array read by antidiagonals: a(n,k) = number of k-colorings of a circle of n nodes (n >= 1, k >= 1). +0
1
0, 0, 0, 0, 2, 0, 0, 6, 0, 0, 0, 12, 6, 2, 0, 0, 20, 24, 18, 0, 0, 0, 30, 60, 84, 30, 2, 0, 0, 42, 120, 260, 240, 66, 0, 0, 0, 56, 210, 630, 1020, 732, 126, 2, 0, 0, 72, 336, 1302, 3120, 4100, 2184, 258, 0, 0, 0, 90, 504, 2408, 7770, 15630, 16380, 6564, 510, 2, 0, 12, 110 (list; table; graph; listen)
OFFSET

1,5

COMMENT

Note that we keep one edge in the circular graph even when there's only one node (so there are 0 colorings of one node with k colors).

FORMULA

a(n, k) = (k-1)^n + (-1)^n * (k-1).

EXAMPLE

a(4,3) = 18 because there are three choices for the first node's color (call it 1) and then two choices for the second node's color (call it 2) and then the remaining two nodes can be 12, 13, or 32. So in total there are 3*2*3 = 18 ways. a(3,4) = 4*3*2 = 24 because the three nodes must be three distinct colors.

CROSSREFS

Cf. A092297, A090860.

Sequence in context: A078112 A128711 A132710 this_sequence A094785 A035536 A098643

Adjacent sequences: A106509 A106510 A106511 this_sequence A106513 A106514 A106515

KEYWORD

nonn,tabl

AUTHOR

Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), May 29 2005

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research