The linear algebra of the generalized Pascal matrix