The first known mathematical system was actually ”invented” by the babylonians 2000 BC. Our modern system was first used by the Greeks around 500 BC.
Besides, no one invented mathematics. Math would work the same for ailiens as for humans, it is universal. Rather than saying that humans ”invented” math, it is more accurate to say that we ”discovered” math.