Table[Mod[(1 + x)^4, 1 + x^2], {x, 0, 10}]