Penalties for memorizing formulas and imitating examples instead of thinking