matrix question.

how would i calculate an upper triangular matrix N. N=(P^-1)*A*P
When im given matrix A but what is P!