Find a recurrence relation that counts the number of off-diagonal elements of an $n+1 × n+1$ matrix. Solve this recurrence relation for an expression of the number of off diagonal entries as a function of $n$.
-For the first part of the question I got $M(n+1) = M(n) + 2n$.
-I am unsure how to solve this as a function of $n$, first off I am unsure if what I came up with is correct for first part and if so how to proceed with this. I am familiar with the auxiliary equation method but i am unsure how to approach this with a non-homogeneous piece $(2n)$. Any help is appreciated.