solve 1+a+a*a+a*a*a+a*a*a*a+a*a*a*a*a=1365