"The King and I" was derived from Margaret Landon's 1944 book her "and the King of Siam"
But, according to the 
BFI book, the Samuel Goldwyn Papers at the Margaret Herrick... [DOC] [TLE] ""A Beautiful Idea"