OFFSET
0,1
COMMENTS
p = 1 if t(n) < 0, t(n+1) < 0; p = 2 if t(n) >= 0, t(n+1) < 0; p = 3 if t(n) < 0, t(n+1) >= 0; p = 4 if t(n) >= 0, t(n+1) >= 0.
q = 1 if |t(n)| <= t(n+1); q = 2 if |t(n)| > t(n+1).
EXAMPLE
PROG
(PARI) T(n)=n*(n+1)/2 rtau3(n)=local(y, j); y=0; j=1; while (T(j-1)<n, j++); j--; for (i=1, j, y=y-(-1)^i*(2*i-1)*x^(T(i-1))); y=y^8; polcoeff(y, n-1) for (n=1, 100, r3=rtau3(n); r31=rtau3(n+1); rn=(sign(r3)+1)/2; rn1=sign(r31)+1; print1((rn+rn1+1)""(abs(r3)>abs(r31))+1", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Jan 06 2003
STATUS
approved