Let a1,a2,… be a sequence for which a1=3, a2=4, and an=an−2an−1 for each positive integer n≥3. What is a2023?
41
31
43
34
3