To discover or think of a good idea, plan, or solution, often by chance or sudden inspiration.
"Newton is said to have hit upon his theory of gravity after observing a falling apple."
He hit upon the idea of using a rubber band to hold the papers together.
— The Economist (paraphrased journalistic usage, widely attested pattern)