Problem

Source: Bulgaria 1971 P1

Tags: number theory



A natural number is called triangular if it may be presented in the form $\frac{n(n+1)}2$. Find all values of $a$ $(1\le a\le9)$ for which there exist a triangular number all digit of which are equal to $a$.