I found the following problem in a past exam: Construct a PDA with void stack acceptance and a CF grammar for the language:
L={w| w={a,b}* such that 2* (number of "a"-s in w) != 3* (number of "b"-s in w) +2 }
Assume that w = {a, b}* with that property. I've tried to construct PDA for equality between the left-hand side and the right-hand side and I think I got it right, but I don't know how to do it for inequality. As for the CF grammar, I find it a bit trickier. Can someone help me?