Dr Hannah Fry travels down the fastest zip wire in the world to learn more about Newton's ideas on gravity. His discoveries revealed the movement of the planets was regular and predictable. James Clerk Maxwell unified the ideas of electricity and magnetism, and explained what light was. As if that wasn't enough, he also predicted the existence of radio waves. His tools of the trade were nothing more than pure mathematics. All strong evidence for maths being discovered.

But in the 19th century, maths is turned on its head when new types of geometry are invented. No longer is the kind of geometry we learned in school the final say on the subject. If maths is more like a game, albeit a complicated one, where we can change the rules, surely this points to maths being something we invent - a product of the human mind. To try and answer this question, Hannah travels to Halle in Germany on the trail of perhaps one of the greatest mathematicians of the 20th century, Georg Cantor. He showed that infinity, far from being infinitely big, actually comes in different sizes, some bigger than others. This increasingly weird world is feeling more and more like something we've invented. But if that's the case, why is maths so uncannily good at predicting the world around us? Invented or discovered, this question just got a lot harder to answer.

But in the 19th century, maths is turned on its head when new types of geometry are invented. No longer is the kind of geometry we learned in school the final say on the subject. If maths is more like a game, albeit a complicated one, where we can change the rules, surely this points to maths being something we invent - a product of the human mind. To try and answer this question, Hannah travels to Halle in Germany on the trail of perhaps one of the greatest mathematicians of the 20th century, Georg Cantor. He showed that infinity, far from being infinitely big, actually comes in different sizes, some bigger than others. This increasingly weird world is feeling more and more like something we've invented. But if that's the case, why is maths so uncannily good at predicting the world around us? Invented or discovered, this question just got a lot harder to answer.

Mathematician Dr Hannah Fry explores the mystery of maths. It underpins so much of our modern world that it's hard to imagine life without its technological advances, but where exactly does maths come from? Is it invented like a language or is it something discovered and part of the fabric of the universe? It's a question that some of the most eminent mathematical minds have been wrestling with. To investigate this question, Hannah goes head first down the fastest zip wire in the world to learn more about Newton's law of gravity, she paraglides to understand where the theory of maths and its practice application collide, and she travels to infinity and beyond to discover that some infinities are bigger than others.

In this episode, Hannah goes back to the time of the ancient Greeks to find out why they were so fascinated by the connection between beautiful music and maths. The patterns our ancestors found in music are all around us, from the way a sunflower stores its seeds to the number of petals in a flower. Even the shapes of some of the smallest structures in nature, such as viruses, seem to follow the rules of maths. All strong evidence for maths being discovered. But there are those who claim maths is all in our heads and something we invented. To find out if this is true, Hannah has her brain scanned. It turns out there is a place in all our brains where we do maths, but that doesn't prove its invented.

Experiments with infants, who have never had a maths lesson in their lives, suggests we all come hardwired to do maths. Far from being a creation of the human mind, this is evidence for maths being something we discover. Then along comes the invention of zero to help make counting more convenient and the creation of imaginary numbers, and the balance is tilted in the direction of maths being something we invented. The question of whether maths is invented or discovered just got a whole lot more difficult to answer

In this episode, Hannah goes back to the time of the ancient Greeks to find out why they were so fascinated by the connection between beautiful music and maths. The patterns our ancestors found in music are all around us, from the way a sunflower stores its seeds to the number of petals in a flower. Even the shapes of some of the smallest structures in nature, such as viruses, seem to follow the rules of maths. All strong evidence for maths being discovered. But there are those who claim maths is all in our heads and something we invented. To find out if this is true, Hannah has her brain scanned. It turns out there is a place in all our brains where we do maths, but that doesn't prove its invented.

Experiments with infants, who have never had a maths lesson in their lives, suggests we all come hardwired to do maths. Far from being a creation of the human mind, this is evidence for maths being something we discover. Then along comes the invention of zero to help make counting more convenient and the creation of imaginary numbers, and the balance is tilted in the direction of maths being something we invented. The question of whether maths is invented or discovered just got a whole lot more difficult to answer

In Los Angeles, a remarkable experiment is underway; the police are trying to predict crime, before it even happens. At the heart of the city of London, one trader believes that he has found the secret of making billions with math. In South Africa, astronomers are attempting to catalogue the entire cosmos. These very different worlds are united by one thing - an extraordinary explosion in data. Meet the people at the forefront of the data revolution, and reveals the possibilities and the promise of the age of big data.

Predictions underlie nearly every aspect of our lives, from sports, politics, and medical decisions to the morning commute. With the explosion of digital technology, the internet, and 'big data,' the science of forecasting is flourishing. But why do some predictions succeed spectacularly while others fail abysmally? And how can we find meaningful patterns amidst chaos and uncertainty? From the glitz of casinos and TV game shows to the life-and-death stakes of storm forecasts and the flaws of opinion polls that can swing an election, 'Prediction by the Numbers' explores stories of statistics in action. Yet advances in machine learning and big data models that increasingly rule our lives are also posing big, disturbing questions. How much should we trust predictions made by algorithms when we don't understand how they arrive at them? And how far ahead can we really forecast?

Hannah then explores what maths can reveal about the fundamental building blocks of the universe - the subatomic, quantum world. The maths tells us that particles can exist in two states at once, and yet quantum physics is at the core of photosynthesis and therefore fundamental to most of life on earth - more evidence of discovering mathematical rules in nature. But if we accept that maths is part of the structure of the universe, there are two main problems: firstly, the two main theories that predict and describe the universe - quantum physics and general relativity - are actually incompatible; and secondly, most of the maths behind them suggests the likelihood of something even stranger - multiple universes.

We may just have to accept that the world really is weirder than we thought, and Hannah concludes that while we have invented the language of maths, the structure behind it all is something we discover. And beyond that, it is the debate about the origins of maths that has had the most profound consequences: it has truly transformed the human experience, giving us powerful new number systems and an understanding that now underpins the modern world.