There are exactly four positive integers such that (n + 1)^2/(n + 27) is an integer. Compute the largest such n.