After leaving school, Fogels wanted to continue with both his interest in mathematics and that in painting. However he also required money to support himself through his studies so the next few years, beginning in 1928, proved very demanding as he studied mathematics at the University of Latvia, studied painting at the Academy of Fine Art, and at the same time worked as a clerk and as a schoolteacher of mathematics to fund his studies. He would have liked to write a Master's Thesis on number theory but nobody at the University of Latvia could supervise him on that topic.
After graduating in 1933 Fogels joined the staff of the University of Latvia. He became a dozent in 1937 and gave lectures on algebra and number theory up until the end of 1938 when he travelled to England to undertake research at Cambridge. His plan had been to study with Hardy, but this did not work out, so instead he undertook research on the estimate for the difference between consecutive primes supervised by Ingham. However after he returned to Latvia in June 1939 World War II broke out and his studies were severely affected.
The German-Soviet Nonaggression Pact was signed in August 1939 and from that time on Latvia's fate was out of its control. On 17 June 1940 the Red Army invaded Latvia and only three days later a new government of Soviet supporters was announced. They voted on 21 July for Latvia to become a part of the USSR and on 5 August this became official. The Soviet occupation saw around 35,000 Latvians deported to Russia within a year. During this extremely difficult period Fogels continued to teach and undertake research at the University of Latvia being appointed as an associate professor in 1940. However, the German army invaded Latvia in July 1941. For a period Latvia was a province of a larger Ostland (including Estonia, Lithuania, and Byelorussia). In 1944 the Soviet army again marched into Latvia and a renewed period of Soviet domination began.
During these difficult years Fogels had been researching for his thesis On mean values of arithmetical functions which he submitted to the University of Latvia in 1947. In the same year he took up an appointment as a research fellow at the Institute of Physics and Mathematics of the Latvian Academy of Sciences. This was a very productive time for Fogels who published twelve papers on number theory over the three years 1947-1950. In particular he showed that if any countable set has an arithmetic where the elements have unique decompositions into primes, then it is isomorphic to the arithmetic of the natural numbers. He also became interested in finite methods in number theory. These restrict the tools available so that only rational numbers with bounded denominators can occur in a proof, which also cannot use differentiation and integration and other infinite tools. Using such finite methods Fogels proved a number of the classical theorems of number theory.
In 1950 the Latvian Academy of Sciences closed down mathematics and Fogels moved to the Riga Pedagogical Institute. He spent the next eight years teaching almost the complete range of mathematics courses and wrote about thirty sets of lecture notes for his students. This meant he had little time for research and it is not surprising that he published only two papers during these eight years. In 1958 the Riga Pedagogical Institute was closed down and since Fogels' health was rather poor by this time so he did not seek another position until 1961 when he was appointed as a research fellow at the Radio Astrophysical Observatory of the Latvian Academy of Sciences. This was a fruitful period for his research and among his papers were three On the Abstract Theory of Primes published in Acta Arithmetica in 1964, 1965 and 1966. The abstract theory of primes had been introduced by Beurling and studied by many authors. This work proves results on infinite commutative semigroups with countably many generators.
Fogels retired in 1966 but continued to undertake research and from 1967 until his death he was on the editorial board of Acta Arithmetica. The authors of  write:-
E Fogels devoted the last years of his life to the Riemann hypothesis. He constructed many variants of possible proofs, though no one of them was successful. [Two papers] contain one of such attempts. The author himself noted a gap in the proof. However, it presented some new interesting connections of the Riemann hypothesis with the theory of prime numbers.As to his character :-
Fogels had a strong personality. he was very hard working and energetic. He was one of those men who devoted all their lives to science. He was also a good teacher.A final comment on his character is that he was so careful as a reviewer of mathematics papers, spending so much time checking every formula with the utmost care, that he had to give up the work since it was too time consuming.
Article by: J J O'Connor and E F Robertson