Who had predicted that "matter was based of 4 different quantities and it could be divided forever?"
Aristotle
Aristotle also believed that the Earth was the centre of the Universe. The word for Earth in Greek is geo, so we call this idea a geocentric theory.
Even getting on with this incorrect theory, he was able to combine what he saw of the stars' movements with mathematics, especially geometry, to predict the movements of the planets.