Algebraic thinking and generalization of patterns: a didactical experience with Italian and Chinese students