p(?=1)=(1/2)*(1/3)=1/6
p(?=2)=(1/2)^2*(1/3+(1/3)*(2/3))=5/36
p(?=3)=(1/2)^3*(1/3+(1/3)*2*(2/3)+(1/3)*(2/3)^2)=25/216
p(?=4)=(1/2)^4*(1/3+(1/3)*3*(2/3)+(1/3)*3*(2/3)^2+(1/3)*(2/3)^3)=125/1296
p(?=5)=(1/2)^5*((1/3+(1/3)*4*(2/3)+(1/3)*6*(2/3)^2+(1/3)*4*(2/3)^3+(1/3)*(2/3)^4)+(1+5*(2/3)+10*(2/3)^2+10*(2/3)^3+5*(2/3)^4+(2/3)^5))=625/1296
E(?)=(1/6)*1+(5/36)*2+(25/216)*3+(125/1296)*4+(625/1296)*5=4651/1296