General formula of 0,1,0,2,0,3

General formula of 0,1,0,2,0,3


an=(n/2)*|cos(nπ/2)|
You can write something similar based on this
For example, an = (n / 2) * cos & # 178; (n π / 2)



What is the general formula of 0.1.0.1?


Analysis: ∵ odd term = 0, even term = 1
The general term formula an = [1 + (- 1) ^ n] / 2, n ∈ n*
It can also express other things, such as
an=│cos(nπ/2)│