Question
Question: Let sequence $\{a_n\}$ satisfy $a_1 = 1, a_2 = 4, a_3 = 5$ and $a_n + a_{n-1} + a_{n-2} + a_{n-3} = ...
Let sequence {an} satisfy a1=1,a2=4,a3=5 and an+an−1+an−2+an−3=n2∀n≥4. If 10sum of digits of a2021 is P then P is

Answer
1.9
Explanation
Solution
The sequence {an} is defined by a1=1,a2=4,a3=5 and an+an−1+an−2+an−3=n2 for n≥4. The general solution is found to be an=4n2+3n+1−5cos(2πn)−sin(2πn). For n=2021, we have cos(22021π)=0 and sin(22021π)=1. So, a2021=420212+3(2021)+1−5(0)−1=42021(2021+3)=42021×2024=2021×506=1022626. The sum of the digits of a2021 is 1+0+2+2+6+2+6=19. P is given by 10sum of digits of a2021=1019=1.9.
