Significant advances in ancient Egypt included astronomy, mathematics and medicine.[3] Their geometry was a necessary outgrowth of surveying to preserve the layout and ownership of farmland, which was flooded annually by the Nile river. The 3-4-5 right triangle and other rules of thumb served to represent rectilinear structures including their post and lintel architecture. Egypt was also a centre of alchemical research for much of the western world.