I want a substitute for the sentence "The thought came to my mind". It should be a slightly formal substitute as I am writing a formal letter. Can someone help me with that?
oc·cur intransitive verb \ə-ˈkər\ (merriam-webster)
3 : to come to mind
"an idea that has occurred to me"