was elected a Fellow of the Royal Society in 1665 and served as its President from 1 December 1684 to 30 November 1686. Isaac Newton's Principia Mathematica was published during this period, and its title page bears Pepys's name. There is a probability problem called the "Newton–Pepys problem" that arose out of correspondence between Newton and Pepys about whether one is more likely to roll at least one six with six dice or at least two sixes with twelve dice. It has only recently been noted that the gambling advice which Newton gave Pepys was correct, while the logical argument with which Newton accompanied it was unsound. Retirement and death He was imprisoned on suspicion of Jacobitism from May to July 1689 and again in June 1690, but no charges were ever successfully brought against him. After his release, he retired from public life at age 57. He moved out of London ten years later (1701) to a house in Clapham owned by his friend William Hewer, who had begun his career working for Pepys in the admiralty. Clapham was in the country at the time; it is now part of inner London. Pepys lived there until his death on 26 May 1703. He had no children and bequeathed his estate to his unmarried nephew John Jackson. Pepys had disinherited his nephew Samuel Jackson for marrying contrary to his wishes. When John Jackson died in 1724, Pepys's estate reverted to Anne, daughter of Archdeacon Samuel Edgeley, niece of Will Hewer and sister of Hewer Edgeley, nephew and godson of Pepys's old Admiralty employee and friend Will Hewer. Hewer was also childless and left his immense estate to his nephew Hewer Edgeley (consisting mostly of the Clapham property, as well as lands in Clapham, London, Westminster and Norfolk) on condition that the nephew (and godson) would adopt the surname Hewer. So Will Hewer's heir became Hewer Edgeley-Hewer, and he adopted the old Will Hewer home in Clapham as his residence. That is how the Edgeley family acquired the estates of both Samuel Pepys and Will Hewer, sister Anne inheriting Pepys's estate, and brother Hewer inheriting that of Will Hewer. On the death of Hewer Edgeley-Hewer in 1728, the old Hewer estate went to Edgeley-Hewer's widow Elizabeth, who left the estate to Levett Blackborne, the son of Abraham Blackborne, merchant of Clapham, and other family members, who later sold it off in