On Mon, Aug 17, 2009 at 11:41 PM, Kip Murray<[email protected]> wrote:
>    (iii0 ,: iii1) 10
> 1 4  7 10  13  16  19  22  25  28  <-- take 10 from first sequence
> 0 4 20 54 112 200 324 490 704 972  <-- take 10 from second sequence

iii0 is obvious, since the difference between
adjacent elements is always 3.

iii1 is slightly harder, but 2&(-~/\)^:a:shows that it's also
a polynomial.

iii0=: 1 3&p.
iii1=: 0  0 3 1&p.

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

Reply via email to