Although a person can perform the mitzva of learning Torah in solitude, one should strive to learn in a public setting, for by doing so he causes more glory to Hashem when many people gather together to serve Him, as it states, ‘The larger the multitude the more it exalts the king’. Our Sages said that when a person learns on his own, Hashem rewards him for it, whereas when he learns in a group, he is also written in a spiritual book of merits, and if there are ten learners Hashem comes to wait for them there. Our Sages also said that Torah is especially acquired in groups, as one of the forty-eight ways of acquiring Torah is teamwork.