Question
Question: Let $M_n=[M_{ij}]$ be a $n \times n$ matrix such that $M_{ij} = \begin{cases} a, & i=j \\ 1, & |i-j|...
Let Mn=[Mij] be a n×n matrix such that Mij=⎩⎨⎧a,1,0,i=j∣i−j∣=1otherwise
Let Dn denotes the determinant value of matrix Mn. On the basis of above information, answer the following questions:
If a = 2 then unit's place digit of D2017 is

5
6
7
8
8
Solution
The matrix Mn is a tridiagonal matrix with a on the main diagonal and 1 on the sub-diagonals. Mn=a10⋮01a1⋮001a⋮0………⋱…000⋮an×n
Let Dn=det(Mn). We can find a recurrence relation for Dn by expanding along the first row. Dn=a⋅det(Mn−1)−1⋅det(matrix obtained by removing row 1 and column 2 of Mn). The matrix obtained by removing row 1 and column 2 of Mn is: 100⋮01a1⋮001a⋮0………⋱…000⋮a(n−1)×(n−1)
Expanding the determinant of this matrix along the first column, we get 1⋅det(Mn−2). So, the recurrence relation is Dn=aDn−1−Dn−2 for n≥3.
We need the initial values D1 and D2. M1=[a], so D1=a. M2=(a11a), so D2=a2−1.
We are given a=2. The recurrence relation becomes Dn=2Dn−1−Dn−2 for n≥3. The initial conditions are D1=2 and D2=22−1=3.
Let's calculate the first few terms of the sequence Dn for a=2: D1=2 D2=3 D3=2D2−D1=2(3)−2=6−2=4 D4=2D3−D2=2(4)−3=8−3=5 D5=2D4−D3=2(5)−4=10−4=6 D6=2D5−D4=2(6)−5=12−5=7 D7=2D6−D5=2(7)−6=14−6=8 D8=2D7−D6=2(8)−7=16−7=9 D9=2D8−D7=2(9)−8=18−8=10 D10=2D9−D8=2(10)−9=20−9=11
We can observe a pattern in the sequence Dn: 2,3,4,5,6,7,8,9,10,11,… It appears that Dn=n+1. Let's verify this formula with the recurrence relation Dn=2Dn−1−Dn−2. If Dn=n+1, then Dn−1=(n−1)+1=n and Dn−2=(n−2)+1=n−1. Substituting these into the recurrence relation: n+1=2(n)−(n−1) n+1=2n−n+1 n+1=n+1. The formula Dn=n+1 satisfies the recurrence relation. The initial conditions are also satisfied: D1=1+1=2 (Correct) D2=2+1=3 (Correct) So, for a=2, the determinant Dn=n+1.
We need to find the unit's place digit of D2017. Using the formula Dn=n+1 with n=2017: D2017=2017+1=2018. The unit's place digit of 2018 is 8.