Chocolate covered Blue berries would but it's just because of a chemical in the berries that helps the memory process (the chocolate would just be a bonus). Cheers!
Oh, and you need more than just memory to learn maths, and related subjects. You need to be able to understand the principles, analyse the problems and choose the techniques to solve them, too, and those are not rote skills like learning the multiplication-tables. I've looked at scientific papers and thought, "How the Hell do they even know that they need this branch of calculus, that matrix technique or the other trigonometrical rules, to analyse the data?"