If are polynomials orthogonal with respect to a positive measure da(x) then if there is no triangle with sides k,m,n. When the polynomials are the continuous q-ultraspherical polynomials of L. J. Rogers, the integral can be evaluated as a product for all integer k,m,n. If (x) has compact support, say [a,b], and the measure is absolutely continuous, , then it is shown that vanishes when there is a triangle with sides k,m,n. Here
and is the usual function of the second kind. When the polynomials are the Rogers polynomials the above integral is evaluated as a product. Limiting cases are ultraspherical polynomials, Hermite polynomials, and Bessel functions.