Mathematics reasoning and proving of students in generalizing the pattern