> On Sep 28, 2017, at 2:45 PM, Erling Hellenäs <[email protected]> wrote:
> 
>    4 [`(] (] , [ + [: {: ]) [ $: [: <: ])@.(<) 8
> 4 9 15 22 30

Super!

4 [`(] (] , (+{:)) ($:<:) )@.< 8

> /Erling
> 
> On 2017-09-28 20:33, Skip Cave wrote:
>> What is a good way to generate this sequence in J?
>> 
>>  4,(4+5),(4+5+6),(4+5+6+7),(4+5+6+7+8)+.....
>> 
>> Show one way using i. and insert.
>> 
>> Show another way using recursion.
>> 
>> Skip
>> 
>> Skip Cave
>> Cave Consulting LLC
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to