[seqfan] Re: Partitioning the sequence (?)

zak seidov zakseidov at yahoo.com
Wed Dec 24 19:37:18 CET 2008


BTW is this code OK:

%t A080577 <<DiscreteMath`Combinatorica`; Partition[6]
thx, zak

My shot gives(?!):

<<DiscreteMath`Combinatorica`;Partition[6]
Partition::argbu: Partition called with 1 argument; between 2 and 6 arguments are expected.
Partition[6]



--- On Sun, 12/21/08, franktaw at netscape.net <franktaw at netscape.net> wrote:

> From: franktaw at netscape.net <franktaw at netscape.net>
> Subject: [seqfan] Re: Partitioning the sequence (?)
> To: seqfan at list.seqfan.eu
> Date: Sunday, December 21, 2008, 4:51 PM
> Written a little differently, these are called
> "compositions".
> Instead of writing names for the elements, just write the
> length of each part.  Your example then becomes:
> 
> 1,1,1,1
> 1,1,2
> 1,2,1
> 2,1,1
> 2,2
> 1,3
> 3,1
> 4
> 
> See, e.g., A066099.
> 
> Franklin T. Adams-Watters
> 
> -----Original Message-----
> From: zak seidov <zakseidov at yahoo.com>
> 
> Dear SeqFans,
> 
> I need to part the sequence a,b,c,d...(of length L)
> in all, n, possible ways:
> 
> a,b,c,d
> a,b,cd
> a,bc,d
> ab,c,d
> ab,cd
> a,bcd
> abc,d
> abcd
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Seqfan Mailing list - http://list.seqfan.eu/


      




More information about the SeqFan mailing list