The historical roots of elementary mathematics