The first three terms in the expansion, in ascending powers of x, of (1 + px)", are 1 − 18x + 36p²x².
Given that n is a positive integer, find the value of n and the value of p.
