First Contact situations with Starfish Aliens have an inherent problem — since the aliens are so incomprehensible, how will you even realize that they're intelligent? For that matter, how can you convince them that you are?
The generally accepted universal signal of intelligence in this situation is the ability to produce a sequence of prime numbers: numbers that are only divisible by the number one and themselves. Why? Because it doesn't matter what number base you are using or what you call the numbers, 7 rocks cannot be divided up into any whole number of equal groups of rocks without breaking them. If the aliens have math, they'll get this — resource allocation is one of the first tricks any group has to figure out. The idea is that they're too irregular to arise from any natural processnote (i.e., no mathematical equation is known that will exhaustively produce them in reasonable timenote ), but mathematically simple enough that it's assumed any intelligent being can recognize them as non-random. More generally, anything obviously recognizable as simple math (such as digits of pi, or a proof of the Pythagorean theorem) can serve the same function. Of course, the digits of pi will change if the aliens don't have a base-10 system (odds are that they don't), while the prime numbers will not change if you represent them properly.
Often this can look like an instance of Only Smart People May Pass (just like plenty of humans do not know about prime numbers or basic math, plenty of otherwise intelligent aliens won't know what to do with the puzzle). However, while Only Smart People May Pass happens in the context of a pre-created puzzle or situation, the entire point of First Contact Math is that it provides the best hope we might have of communicating without having any context at all.
See also First Contact Team, for when First Contact Math might fail and you need to plan for any contigency.
- Life on Another Planet (1978) by Will Eisner. An artificial radio signal from Barnard's Star listing prime numbers (although the term "prime" is never used in the story) is received at the Mesa Radio Astronomy Observatory.
- Averted in a Mickey Mouse comic: Mickey was kidnapped by aliens and treated as a pet. When he wrote complex mathematics on the walls of the spaceship, it was dismissed as random scribbling. How he got the aliens to recognize him as an intelligent being? Cooking.
- Superman Unchained: On the brink of World War II in 1938, US scientists sent a mathematical equation into space, but the mathematical equation was incorrect, and added up to more than the sum of its parts, to signify the message "let us add up to more, together." Eleven seconds later, The Wraith's ship crash landed on Earth, with a similar, more complex equation.
- Ultimate Fantastic Four: When Reed makes contact with some residents of the Negative Zone, their first few exchanges are conducted in binary. After Reed sends them Pi and the human symbol for "hydrogen", their computer takes over and downloads the first contact package he prepared.
- The basic story of Arrow 18 Mission Logs is of first contact between humans and ponies. After Twilight Sparkle leaves Randy (the human astronaut who just landed in Equestria) a basket with some food, he leaves a sheet of paper with basic math problems on them (including a chart indicating that "1" means one, "2" means two, etc.) Twilight's reaction when she figures out that the "stridetaur" is trying to communicate with math is one of unbridled glee.
- Discussed but ultimately averted in The Next Frontier. The odds of anything remotely recognisable as prime numbers or similar at interstellar distances are pretty much nil, but a single repeating tone or a noise like this could carry much further. And by the time first contact actually happens, the aliens have Learnt English from Watching Television anyway.
- Notably averted in Mass Effect: Clash of Civilizations. Both the UNSC and Citadel have their own method of deciphering language, neither of which involve mathematics.
- Played for Laughs in Someone has heard them scream. When the SA ship first encounters the Council survey ship, they start by transmitting the prime number sequence. The Citadel ship crew recognizes the prime number sequence pretty quickly... and then gets sidetracked trying to guess what a sequence of numbers is supposed to convey.
So, what are they saying? That they are a race of mathematicians? That they only want to talk to mathematicians? That they need help with a math problem?
- After guessing that the prime numbers were a generic "I am intelligent and want to talk about intelligent things" signal, the Citadel ship responds by sending back all the non-prime numbers in between the numbers the humans sent, to try and signal that they are willing to meet the humans halfway. The humans are, unsurprisingly, baffled.
- The Mission Stays the Same: When they leave Illium, the Normany crew picks up a Gyrinx, a large alien feline that communicates through Telepathy with other psykers. In order to prove its sapience to the Citadel Council and get First Contact rolling, Mordin has the Gyrinx (named M'tarr) answer some basic math questions in a recording while Maeteris translates more complex language. Not only does M'tarr answer the questions correctly, she also displays several other signs of sapience that Mordin was watching for: emotions (flattening her ears in annoyance and asking through Maeteris if Mordin thinks she's stupid when he gives M'tarr a very basic question), creative thinking (answering his second question with a riddle), and understanding of astronomy (said riddle being an accurate calculation of the lunar cycle of M'tarr's homeworld Moarheff).
- Queen Watevra Wa'Nabi in The LEGO Movie 2: The Second Part tells the gang she's going to talk to them in the universal language. Princess Unikitty guesses it's math, but it turns out to be song, to Lucy's horror.
- Arrival: One of the first things attempted for meaningful communication with the aliens. It doesn't work until they try sending extremely advanced mathematics rather than simple ones. Turns out the aliens' minds are structured very differently, so what is simple and easily understandable for humans is not so for them.
- Colossus: The Forbin Project: How Colossus establishes a common language with the Soviet Master Computer Guardian. It starts with 1+1=2 and in a few hours has developed an entire new language for them to communicate. Unfortunately this alarms both governments as they can't be sure strategic secrets aren't being leaked, so the President and Premier decide to break the link. The computers do not react well.
- Contact has aliens contact Earth by sending a sequence of prime numbers. Later, they send instructions for building a machine to reach them by embedding basic universal math principles into the instructions so any race with knowledge of mathematics can decode it and build the machine.
- Attempted by Lob in the Soviet cult classic Moscow Cassiopeia, when he encounters a pair of Human Aliens (actually, they're Ridiculously Human Robots, but he doesn't know that yet) on a planet seemingly devoid of intelligent life. Despite possessing a Universal Translator, he tries this trope by writing out the "(a + b)2" formula and turning it into "a2 + 2ab + b". One of the aliens grabs his marker and adds the "2" to the last symbol.
- In Arthur C. Clarke's novel version of 2001: A Space Odyssey, Dave Bowman tries (unsuccessfully) to talk to the Iapetus monolith by broadcasting primes at it.
- The Action Hero's Handbook has a chapter on communicating with extraterrestrials, and suggests starting with basic concepts like numbers and shapes because the authors of the book believe that no matter how alien the culture is, they would still be able to have dialogue about that, especially if they're able to go into space.
- The alien ship in Anathem has a proof of the Pythagorean Theorem on its hull for this reason.
- How the writings written on the Mecha were deciphered in "The Themis Files". With their own Base-8 system but the formulas were consistent with Earth's
- In The Andromeda Affair, the aliens are transmitting a sequence of bits whose length is the product of two primes. The hero assumes correctly that this implies the bits should be arranged in a two-dimensional grid to be understood.
- Isaac Asimov:
- The Left Hand Of The Electron: This Non-Fiction book describes the concept of "parity" in physics, and creates a Framing Device where you are sending an interstellar radio message to an alien culture. How do you describe the concepts of "right" and "left"? Start with math.
- "Not Final!": Birnam describes how first contact with Jovians involved a lot of back-and-forth on math, such as adding, square roots, and factorials. This went on for over five years, as human scientists on Ganymede communicated by radio clicks to the surface of Jupiter.
- This fails in Calculating God by Robert J. Sawyer; transmissions to Delta Pavonis go unnoticed by the native Wreed, because the Wreed have a brain structure that makes them incapable of doing math. (They can automatically recognize numbers of up to 46, and that's it.) They are very good at ethical problems and analog simulations, though. The Forhilnor also admit that they were astonished to find a civilization on the Wreed homeworld, but stoutly defend their intelligence, noting that the Wreed build beautiful cities out of the sparse available materials there.
- In the French novel Ceux de nulle part, the protagonist tries to communicate with an alien by using basic math and fails. Then again, normal physical laws do not seem to apply to said alien.
- Children of Time: The human project to fill the galaxy with life involves terraforming planets, introducing monkeys infected with a virus that will uplift them over generations, then putting a satellite in orbit to broadcast a radio message containing a simple mathematical sequence at the planet over and over again. The expectation is that, as the monkeys attain human-like intelligence, they will develop the means to detect the message and reply to it with the next steps of the sequence, signaling that theyre ready to meet their makers. However, circumstances cause all but one world to suffer ecological collapse, and on that world, the monkeys never arrived. What arises instead is a sentient species of jumping spider, and cultural and psychological factors prevent them from responding to the message until centuries after they first detect it, and the interstellar human empire imploded thousands of years before that.
- In "Cold Snap" by Kim Newman, the villain has revived a dormant non-human intelligence that existed before all other life on Earth. While the hero is trying to figure out how the villain communicates with it, he goes through several of the standard options including numbers, but concludes that the creature is too alien even for those to be common ground. "A being on her scale has no use for any number other than 'one'."
- Contact: The alien transmission begins with a sequence of prime numbers, before continuing on to more useful mathematics and science. The novel by Carl Sagan (who also championed the use of primes in this context in Real Life SETI) makes considerably more of this, also using prime numbers in the encoding of the more complex layers of the transmission.
- In James Cambias' A Darkling Sea, when one of the Ilmataran tried to properly establish communication with a human on their planet (after the First Contact Faux Pas that cause conflicts between humans and Sholens over Alien Non-Interference Clause issue on contacting Ilmatarans), Rob, the main character, tried to tap 1+1=2 and 2+2=4 to see if the Ilmataran can realize that he's an intelligent being and try to start learning to communicate. It works. This is probably helped by the fact that non-echolocation-based component of Ilmataran language is based on math and mapping words to numbers.
- In Dreamcatcher by Stephen King, a population of infected send pleading messages interspersed with a recitation of prime numbers. One of the characters speculates it is to prove they're an intelligent species. They must not be that intelligent though, since they include 27 and 117 in their list. (Also 1, but that's somewhat reasonable, depending on how you define primes.) This deviation from the primes isn't noted in the novel though, and was probably either unintentional or done because the numbers have significance to Derry, the novel's setting.
- The Real Life attempts by SETI are described in Earth (The Book) or, as Jon Stewart calls it, "drunk-dialing the universe".
- Used, then subverted in the series beginning with Emprise. An alien transmission is recognized and eventually translated into a simple depiction of the aliens and their system. However, one mathematician claims to have found many more levels of meaning embedded in the message, à la The Bible Code. Ultimately, it turns out that these new levels are the product of his overactive imagination. Double subverted in that the message turns out to be from the remnants of a human colony from humanity's first attempt at interstellar colonization during the last ice age, which came to an abrupt end when the real Starfish Aliens wiped out (almost) all of the colonies and bombed Earth back into the stone age.
- In H. G. Wells' The First Men in the Moon, Cavor discusses using math to communicate with his alien captors, but he doesn't really have any idea how to do so.
- Giants Series: In a related "First Contact Chemistry", in James P. Hogan's Inherit the Stars, the key to deciphering an alien language comes when someone recognizes a Periodic Table of the Elements in an alien book.
- The Polish short story "Koła na piasku" by Adam Pietrasiewicz parodies this: a human and an alien talk to each other friendlily by radio before realizing what the other is. They immediately proceed to follow the "standard first contact procedures"; the human draws a Pythagorean triangle, while the alien draws some squiggly lines. They then go back to their vehicles and complain by radio that they can't comprehend what the other one drew (and none of them knows math very well, so they don't even know what they drew, only that they were told to draw them).
- In The Long Utopia, human scientists use this when trying to communicate with the silver beetle creatures. They are summarily ignored, and Lobsang admits that he'd probably just laugh if he saw some strange creature counting out basic numbers with rocks.
- In A Martian Odyssey by Stanley Weinbaum, the human explorer communicates with the Martian first with the words "one" and "two" demonstrated with rocks. The bird creature learns a few English words, at one point saying "No One One Two" to describe a creature that is unintelligent, and "One One Two Yes, Two Two Four No" for a creature of very rudimentary intelligence.
- Larry Niven and Jerry Pournelle's The Mote in God's Eye has the human exploration party and the Moties use this method for initiating communications.
Cargill and Horvath's team worked together to answer the pulses. One, two, three, four blinked the light, and Cargill used the forward batteries to send five, six, seven. Twenty minutes later the light sent three one eight four eleven, repeated, and the ship's brain ground out: Pi, base twelve. Cargill used the computer to find e to the same base and replied with that.
But the true message was, We want to talk to you. And MacArthur's answer was, Fine.
Elaborations would have to wait.
- In C. J. Cherryh's The Pride of Chanur, when the human Tully is cornered by the felinoid Hani, he writes out (in his own blood) numbers from zero on up. When he gets to 10 they realize that he might be using a positional notation system.
- The Murderous Maths book discussing the properties of numbers discusses this trope.
- Referenced in Noughts & Crosses. Callum and Sephy are discussing their favourite school subjects, and Sephy can't believe that Callum likes maths. Callum references the countless ways maths is essential, including this trope, in response.
- H. Beam Piper's "Omnilingual": This novelette uses the Periodic Table as a universal key. It helps that the Martian language tends to make new words by combining existing ones, so that (for example) the word for "metal" is part of the names of various metallic elements.
- In Schild's Ladder by Greg Egan, the protagonists realize that there's intelligent life inside a pseudovacuum when they notice that a series of pulses coming from it represent consecutive prime numbers.
- The Barbara Hambly novel The Silicon Mage shows Antryg and Joanna communicating with an extra-dimensional via Pi and Planck's Constant.
- In Michael Crichton's Sphere this is the way Harry manages to first make meaningful contact with the mysterious alien presence.
- Tom Swift Jr. and his father communicate with some aliens by sending mathematical symbols at them (and vice versa) throughout his entire series. Exactly what is meant by "mathematical symbols" is never made particularly explicit.
- In Cauldron, Priscilla Hutchins realises that Space Clouds they are observing have formed a Giant Eye of Doom looking back at them. While everyone else freaks out, she tries flashing her navigation lights at the 'eye', and gets flashes of 'lightning' inside the cloud as a response. Eventually by using the lights to perform basic math, they're able to start rudimentary communication.
- In Star's Reach by John Michael Greer, both humanity and the Cetans tried this to find out whether there was other life in the universe. However, it took a while for both sides to realize they were receiving messages, because their math systems are fundamentally different Cetans, being amorphous and shifting, think in terms of "flows" from one value to another, and their basic math has more in common with calculus, while they can only conceive of our regular math with difficulty.
- Subverted in an episode of Babylon 5. A probe sent out by an advanced species containing mathematical riddles appears to be this at first... until it's found out the thing's actually a way for the isolationist species to figure out which other races are a threat and destroy them. Fortunately, the probe's fairly stupid.
- In the Close Encounters of the Third Kind parody short "Closet Cases of the Nerd Kind", which features aliens coming down to Earth and hitting people in the face with pies for no apparent reason, some researchers keeps receiving the number 3.14159 and don't understand why. Finally, one character speaks up.
Exposition Guy: I was a scientist before I became a bad actor. I know what that number means.
Other Character: Well? What is it?
Exposition Guy: It's... pi.
- In Doctor Who, this problem is usually absent due to the presence of the TARDIS's Universal Translator, However, it arises in the episode "Flatline" when the Doctor encounters strange 2-dimensional beings, who are so alien that even the TARDIS cannot translate them. The creatures had been abducting and killing people, with the Doctor having hoped they were Non Malicious Monsters, who are simply so alien and confused by a 3-D world they don't realise they're harming sentient beings. He attempts to communicate with them using the digits of pi. They respond with the number on the jacket of the man they killed, and then the number of the one they're about to.
- In the Farscape episode "Through The Looking-Glass", Crichton realizes an extradimensional being is trying to communicate with the crew rather than hunt them when he recognises that the talon slashes that it makes in reality are the first few successive prime numbers.
- Star Trek:
- In the Star Trek: The Next Generation episode "Allegiance", Picard is kidnapped by unknown aliens; he attempts to convince them that he's intelligent by repeatedly tapping out the first six prime numbers.
- Star Trek: Voyager:
- In "Blink of an Eye", an alien species living on a planet where time moves extremely fast attempt to communicate with Voyager (or, as they call it, the Sky Ship) via radio by using prime numbers and universal constants. Since, by the time they receive and recognize the signals, the scientist who sent them is long dead, the Voyager crew don't bother responding.
- Amusingly played with in "Future's End", where after being sent back in time to Earth in the year 1996, they're picked up by an astronomer who attempts to communicate with the "aliens" in orbit by sending the SETI message. A crewman asks Harry if they should respond, to which Harry says, "Absolutely not."
- The Twilight Zone episode The Little People has one of a pair of stranded astronauts contact the titular group. When his partner arrives, the first explorer explains that he used math to establish communication with the alien society. He soon uses his ability to communicate with them for a much darker purpose...
- In Rama (based on the novel Rendezvous with Rama), the Ramans put many math-based obstacles in your path, presumably for this reason.
- Schlock Mercenary: When investigating the ancient, planet-sized artifact Oisri, it doesn't take long for people to start noticing that there are too many mathematical coincidences to be anything but intentional. To start with, there's a large effect that is exactly 2063 times the planetoid's radius. This is the first step to deciphering the tools to reading the data Oisri contains.
Kevyn: Did you know that the radius of Oisri's grav-mask is exactly—
Dietz: [interrupting] Two thousand and sixty three times her radius. We know this. Also, 2063 is the 311th prime number. 311 is the sixty-fourth prime number, and prime factorization of 64 gives us 2 to the 6th.
Kevyn: Ah. So you've been down this rathole before, then.
Dietz: Rathole? Irony! Captain. How do you think we knew where to dig?
- In Band by Tailsteak, intelligence is established with square numbers (1, 4, 9, 16)
- In Fine Structure, "Eka", AKA "The Script", starts out from prime numbers and works its way up to describe the entire physics of the universe.
- Parodied in The Onion: Earth Contacted By Extraterrestrial Nerds.
- Conspiracy theorists might believe otherwise, but it is generally accepted that we haven't had any first contact yet to see if this works. Some of the messages we've beamed into space have included prime numbers just in case.
- In the free e-book released by NASA Archaeology, Anthropology, and Interstellar Communication it is posited that while math may be great for first contact we may run into some stumbling blocks trying to understand language without any further context to assist a translation. The book cites how for years the Mayan number system was decoded and understood, however scholars were stumped for many years after by the written language. If we had that much trouble with a human language, things may be even harder working out an alien language, even if we can agree on math.
- "Prime Numbers and the Search for Extraterrestrial Intelligence" by Carl Pomerance is an academic paper which discusses the idea in depth.
- Space probes we sent out of the Solar System (like Pioneer 10) usually contain this in some form. note
- Lincos is one possible example of how to extend the message into actual communication, building up to a complete language from only the natural numbers (fiction, being written by writers, usually skips this bit).
- The notion mentioned above for The Andromeda Affair ("a repeating sequence with a period that is the product of two primes is an indicator that it represents a [unique] rectangular gridnote ") is not a stunning leap of logic for anyone familiar with SETI, since it's been used in human broadcasts as well.
- The idea of First Contact Math is Older Than Radio, albeit back then it was more about proving that Earth is inhabited by a sentient species, rather than communicating after having already found out about each other. These early ideas involved sending messages to the Martians by means such as Pythagorean triangles in form of tracts of farmland in the Siberian woods, or ditches filled with burning oil in nighttime Sahara.