This was a very interesting problem in my opinion. It is a classic exercise in simulation, especially related to population growth. The constraints are small enough that you can brute-force and you'll be fine. Some techniques worth mentioning:
1/ Use a hash set for quick verification whether a point is in the generation
2/ Hash using the boundaries - using 7 as a ...