tridiagonal matrix

Thus, A can be stored in three vectors. Describe a method to calculate the LU decomposition
of A, using only three vectors. For LU decomposition of A with partial pivoting,
how many vectors are needed?