occur to (one)
To realize suddenly; to come into one's mind. It occurs to me that I never explained why we need these extra computers. Did it ever occur to you that maybe I was trying to do you a favor?
occur to someone
[for an idea or thought] to come into someone's mind. It occurred to me that you might be hungry after your long journey. Would it ever occur to you that I want to be left alone?
To come to someone's mind: When it occurred to me that I could leave the party whenever I wanted, I felt more at ease.