Iconicity and contraction: a semiotic investigation of forms of algebraic generalizations of patterns in different contexts