The mean number of hours spent on math homework can be calculated by adding up the total number of hours (1+1+2+2+2+2+2+2+3+3+3+3+4+4+5) and then dividing by the total number of students (8+6+4+2+1 = 21).
Total number of hours = 35
Total number of students = 21
Mean = Total number of hours / Total number of students = 35 / 21 ≈ 1.67 hours
Therefore, the mean number of hours students spent on math homework is 1.67 hours.