Some numbers, such as 36 which is both square and triangular, fall into two polygonal sets. The problem of determining, given two such sets, all numbers that belong to both can be solved by reducing the problem to
Pell's equation. The simplest example of this is the sequence of
square triangular numbers. The following table summarizes the set of -gonal -gonal numbers for small values of and . : In some cases, such as and , there are no numbers in both sets other than 1. The problem of finding numbers that belong to three polygonal sets is more difficult. Katayama proved that if three different integers , , and are all at least 3 and not equal to 6, then only finitely many numbers are simultaneously -gonal, -gonal, and -gonal. Katayama, Furuya, and Nishioka proved that if the integer is such that s=5 or 7\le s\le 12, then the only -gonal square triangular number is 1. For example, that paper gave the following proof for the case where s=5. Suppose that P(3,n)=P(4,p)=P(5,q) for some positive integers , , and . A calculation shows that the point (x,y) defined by (x,y)=(48p^{2}+3,24p(2n+1)(6q-1)) is on the curve Y^{2}=X^{3}-X^{2}-9X+9. That fact forces (x,y)=(51,360) (as an
elliptic curve database confirms), so p=1 and the result follows. The number
1225 is hecatonicositetragonal (), hexacontagonal (), icosienneagonal (), hexagonal, square, and triangular. == See also ==