USACO Silver "Subsequences summing to sevens" solution question

Solution
I’m reading the solution to this problem, and I don’t understand what the “first” vector is for.

The first vector stores the index of the first time a prefix sum has been divisible by 7.

Ok, thanks.