(La Habitacion de Fermat) is a 2007 Spanish suspense film.
Four mathematicians receive a mysterious letter in the mail, and are given an offer: if they can identify the pattern of the numbers in the letter, they will be invited to work on the greatest mathematical enigma of all time. The letters are signed only, "Fermat." The four accept, and are given aliases - Hilbert, Galois, Pascal, and Oliva. Upon arrival, they realize they are trapped, and the only way to prevent the walls from closing in is to solve a never-ending sequence of brain teasers. Along the way, the characters' secrets come out as they speculate on their host's true motives.
This film provides examples of:
- The Alcoholic: Pascal is almost constantly drinking, to try and forget that he ran over Pascal's daughter.
- Attention Whore: Galois is only a mathematician because of the fame he can get when he discovers something new, like the proof of Goldbach's conjecture.
- Character Tic: Hilbert has a habit of adding grammatical accents when other people write on the chalkboard.
- Batman Gambit: The success of the scheme relied on every character and detail to work as planned.
- The Chessmaster: Hilbert.
- Cheaters Never Prosper: Had Galois never lied about his proof of Goldbach's Conjecture, nothing would have happened.
- Closed Circle: By the time the characters realize the walls are moving, the door has been rendered unopenable.
- Deadpan Snarker: Pascal is the most cynical person in the room. He's also the one that notices the walls are moving, the one that solves the first riddle, and the one that figures out who got everybody together.
- Eureka Moment: The characters have several of these while pondering over the puzzles.
- Evil Gloating: Done by Hilbert.
- Fair Play Whodunnit: Every hint the characters get, the viewers get too (though we don't know anybody's secret to start with).
- Fox-Chicken-Grain Puzzle: Discussed when they cross the river.
- Hope Spot: As the people in the room try to contact Fermat, it's revealed that his safety belt has been boobytrapped. But the viewers know he's still alive, because he never actually used his seatbelt. Then he's stopped by the police, who make him wear it...
- Knights and Knaves: One of the riddles. One has to wonder how there are four adult mathematicians in a room and yet no one knows the answer to even this riddle yet.
- Made of Indestructium: The furniture is mercilessly crushed by the hydraulic pumps, but the walls don't even bend a little.
- Meaningful Name: Everybody's alias is a mathematician's name. Mathematicians who died at the same age as the characters are now. Except Hilbert, who lived past eighty.
- Men Are Generic, Women Are Special: All men's aliases are important mathematicians' family names. Olivia's is, well, a first name.
- Mistaken for Special Guest: Part of The Reveal. Fermat was assumed to be the host of the game, while in fact he was merely another pawn in the scheme.
- Poor Communication Kills: Had anyone actually asked Fermat whether he was the host, had anyone listened to Pascal when he noticed the walls moving, or had Fermat picked up his phone when the others tried to call him, at least two lives could have been saved.
- Properly Paranoid: Galois checked who the mysterious host was before going to the gathering. Too bad he forgot the name.
- Race Against the Clock
- Red Herring: Everybody's supposed motives to kill any of the others in the room (except the one of the true culprit, of course).
- Pascal's running over Fermat's daughter, and Fermat's supposed revenge. For that matter, everything involving Fermat.
- Galois and Olivia's failed relationship, though their relationship was the reason why Olivia was there.
- Riddle Me This: duh.
- Sealed Room in the Middle of Nowhere: The heroes aren't exactly left to starve, but considering the hoops the characters had to jump through to get there...
- Smart People Play Chess: We first get to see Hilbert when he's playing chess with his psychiatrist.
- Three Plus Five Make Four: A variant with two hourglasses: one of three minutes and one of seven minutes, the goal is to time eight minutes.
- Viewers Are Morons: Probably the reason why four mathematicians don't know the answer to some of the Stock Puzzles they get.
- Villain Exit Stage Left: The villain planned to exit via lift. Didn't happen.
- The Walls Are Closing In: Drives the plot.