>>223
((a+1)x+1)(ax^2+x-1)か?