Hamamura Nagisa no Keisan Note manga series revolve around a middle school girl (grade 8, to be exact) who solves mysteries through her deep knowledge and interest in math. In this second volume, Nagisa has to solve a phi problem, which is used by a group of pirates.
Huh. Modern day pirates based on the number phi. Now that, at least in the beginning, sounds interesting.