MATHCOUNTS 2026 State Sprint Round (Problem 24)

In a certain sequence, a0=20a_0=20 andan=(an1)2+1a_n=\sqrt{(a_{n-1})^2+1}for any positive integer nn. What is the value of a500a_{500}?