 There he undertook extracurricular studies in mathematics.He enrolled as a student at the Royal Frederick University in 1814, a turbulent year in Norwegian history.Norway had been a province of Denmark since 1397, but had come under Swedish control in the January 1814 Treaty of Kiel.