[seqfan] Re: Clarifying A112531

Aai agroeneveld400 at gmail.com
Tue May 20 08:33:35 CEST 2014


Even better(?), generating the relevant partitions directly:

1
11
21 111
31 221 211 1111
...

e.g.

the successor of

21 111

1: increment all but the last one by one

31 221

2: append a one

211 1111

3: combine both results

31 221 211 1111

For those interested, here's a J program to  to generate the sequence:
(it generates the elements of A112531 as shown in OEIS)

(# (%*/)&:! #/.~)&>(<1),;<@;@((>:@}:,{:)L:0,,&1 L:0)^:(<6)<<1 1





On 19-05-14 19:50, Aai wrote:
> The partitions expand as follows IMO:
>
> 1
> 2 11
> 3 22 21 111
> 4 33 32 222 31 221 211 1111
> etc.
>
> A two step next subsequence of partions based on the previous sub:
>
> first:  increment every digit of the partitons by 1
> second: append a 1 to every partitons
>
> e.g. we have:
>
> 3 22 21 111
>
> then the next subsequence of partitions will be:
>
> 4 33 32 222
> followed by
>
> 31 221 211 1111
>
> combined to
>
> 4 33 32 222 31 221 211 1111
>
>
>
>
>
> On 19-05-14 09:09, Peter Luschny wrote:
>> Please help clarifying the definition of the triangular array
>> http://oeis.org/A112531
>>
>> Peter
>>
>> _______________________________________________
>>
>> Seqfan Mailing list - http://list.seqfan.eu/
>

-- 
Met vriendelijke groet,
@@i = Arie Groeneveld




More information about the SeqFan mailing list