How algebra spoiled recreational problems: a case study in the cross-cultural dissemination of mathematics