The reverse problem, to find the factors of a number when you have expressed it as the difference of two squares, is obvious. For example, the sum and difference of any pair of numbers in the last sentence will give us the factors of 63. Every prime number (except 1 and 2) may be expressed as the difference of two squares in one way, and in one way only. If a number can be expressed as the difference of two squares in more than one way, it is composite; and having so expressed it, we may at once obtain the factors, as we have seen. Fermat showed in a letter to Mersenne or Frenicle, in 1643, how we may discover whether a number may be expressed as the difference of two squares in more than one way, or proved to be a prime. But the method, when dealing with large numbers, is necessarily tedious, though in practice it may be considerably shortened. In many cases it is the shortest method known for factorizing large numbers, and I have always held the opinion that Fermat used it in performing a certain feat in factorizing that is historical and wrapped in mystery.
140.—FIND ADA’S SURNAME.
The girls’ names were Ada Smith, Annie Brown,
Emily Jones, Mary
Robinson, and Bessie Evans.
141.—SATURDAY MARKETING.
As every person’s purchase was of the value of an exact number of shillings, and as the party possessed when they started out forty shilling coins altogether, there was no necessity for any lady to have any smaller change, or any evidence that they actually had such change. This being so, the only answer possible is that the women were named respectively Anne Jones, Mary Robinson, Jane Smith, and Kate Brown. It will now be found that there would be exactly eight shillings left, which may be divided equally among the eight persons in coin without any change being required.
142.—THE SILK PATCHWORK.
[Illustration]
Our illustration will show how to cut the stitches of the patchwork so as to get the square F entire, and four equal pieces, G, H, I, K, that will form a perfect Greek cross. The reader will know how to assemble these four pieces from Fig. 13 in the article.
[Illustration: Fig. 1.]