If the middle term of (1x+xsinx)10 is equal to 778, then the principal value of x is:
(i) Find the remainder, when 599 is divided by 13.
(ii) If the middle term of (1x+x sin x)10 is equal to 778, then find the value of x.