Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A095988
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A095988 Number of Gray codes for partitions of n. +0
1
1, 1, 1, 1, 3, 1, 52, 652, 298896, 2291100484 (list; graph; listen)
OFFSET

1,5

COMMENT

List the partitions of n and form a graph where two partitions are connected if one can be transformed into the other by adding 1 from one element, subtracting 1 from another element and rearranging (if necessary). A Gray code corresponds to a Hamiltonian path through all of the partitions.

Terms a(6) through a(10) are given in the Knuth reference.

REFERENCES

D. E. Knuth, The Art of Computer Programming, vol. 4A, Combinatorial Algorithms, (to appear), section 7.2.1.4.

EXAMPLE

The partitions of the integer 6 are 111111, 21111, 3111, 2211, 222, 321, 33, 42, 411, 51, 6. Each term is obtained from the previous term by adding 1 to one element, subtracting 1 from another element, and rearranging. This is the only way to do it for 6, so a(6)=1.

CROSSREFS

Sequence in context: A098341 A010292 A133104 this_sequence A082525 A016482 A071291

Adjacent sequences: A095985 A095986 A095987 this_sequence A095989 A095990 A095991

KEYWORD

hard,nonn

AUTHOR

Jud McCranie (j.mccranie(AT)comcast.net), Jul 18 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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research