Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: a group of n students can be divided into equal groups of 3 with 1 student left over or equal groups of 6 with 1 students left over . what is the sum of the two smallest possible values of n ?
8