Computing terms exactly:
t3t4t5=25⋅205⋅21+1=25053,=25⋅215⋅25053+1=26250103,=25⋅250535⋅26250103+1=52505353⋅5310=525101, using
5353=53⋅101. Then
t6=25⋅262501035⋅525101+1 =105206⋅1031050 =20=t1 and
t7=21101101=21=t2.
Since each term depends only on the two preceding terms, the sequence repeats with period
5. Because
2020 is a multiple of
5, we get
t2020=t5=525101. As
101 is prime and does not divide
525, the fraction is reduced, and
p+q=101+525=626.