wrote y(p, n)

updated readme, too