There’s science behind the perfect spud.