During 1840 , Riemann went to Hanover to live with his grandmother and attend lyceum ( middle school ) .
When he was 14 he went to Hanover where he lived with his grandmother so that he could go to a Gymnasium school .