Persistent grey screen on startup.
I own a late 2011 MacBook Pro running osx mavericks. Had it for two years with no problems. In early January of this year the macbook would crash whenever I opened photoshop or other programs like iMovie or photobooth. The only way to get it to function again was to hard restart the laptop. And Even then sometimes I would get the grey screen on start up and hear three beeps. I Went to the Genius Bar and the employee reseated the RAM and the laptop functioned well for a week. When the persistent grey screen appeared again, the genius employee erased all my storage, with my permission, reset my operation system completely. Even still I get the grey screen and the laptop doesn't make it to the login. What should I do to fix it? Would buy info new ram solve the problem? If tried pessimg shift and running in safe mode but I just get a blue screen and am forced to hard reset.
MacBook Pro (15-inch Late 2011), Mac OS X (10.7.5)