I want to know the answer to the following question:
Who was the king of Prussia from 1740 to 1786?
All the background I'm provided with is that "Voltaire, who had been imprisoned and maltreated by the French government, was eager to accept Frederick's invitation to live at his palace.". Is that enough to answer the question?