Question (ii)
Since the indexing starts with 1, 1st row has only 2 elements {A[1,1] ,A[1,2]}
And 2nd row onwards each row has 3 elements.{A[i,j-1], A[i.j], A[i,j+1]}
A[i,j] = [2+(i-1)*3 + f(i,j)]
where f(i,j) = 0 (j=i-1)
1 (j=i)
2 (j=i+1)
Note: A[i,j] where |i-j|>1 ---not valid