login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A095988 Number of Gray codes for partitions of n. 0
1, 1, 1, 1, 3, 1, 52, 652, 298896, 2291100484 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
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.
LINKS
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: A133104 A322730 A292425 * A189898 A082525 A162221
KEYWORD
hard,nonn
AUTHOR
Jud McCranie, Jul 18 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)