I am having trouble figuring out how to create the following matrix in Mathematica: aij = 1 if j = i+1, i = 1,…,n-1 1 if j = i-1, i = 2,…,n 0 otherwise A is singular iff n is odd.

I am having trouble figuring out how to create the following matrix in Mathematica: aij = 1 if j = i+1, i = 1,…,n-1 1 if j = i-1, i = 2,…,n 0 otherwise A is singular iff n is odd.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.