A triangular number is a number of the form $t_n=1+2+\cdots+n$ for a positive integer $n$. What is the sum of the digits of the fifth smallest positive integer that is both a triangular number and a perfect square?
$\frac{n(n+1)}2=m^2$ means $(2n+1)^2-8m^2=1$. The positive solutions of $x^2-8y^2=1$ are $(3,1),(17,6),(99,35),(577,204),\dots$, each obtained from the previous one by $(x,y)\to(3x+8y,\,x+3y)$; they give the triangular squares $m^2=1,36,1225,41616,\dots$
The fifth solution is $(3\cdot577+8\cdot204,\,577+3\cdot204)=(3363,1189)$.