A student predicted an equation while solved a rare gem in a cave.