F(a,b) is a function that generates a sequence of integers.

X1,X2,X3,X4...Xn

This sequence should have the following relationship with a and b:

Xi+X(i+1)+...+X(i+a-1)>0
Xj+X(j+1)+...+X(j+b-1)<0

where i, j are any integer between 1 and n-a+1, 1 and n-b+1, respectively.

How to write such a F(a,b) that fits the above rules?

so hard for me... :eek:
anyone can help?
Posted on 2002-11-30 02:03:41 by C.Z.