A sequence of numbers is defined recursively by a1=1, a2=37, and an=an−2⋅an−12an−2−an−1
for all n≥3. Find the value of a2019.