(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.