The voyage is 16 generations. You want to establish a healthy stable society. If people live 100 years at that time then you want roughly 24 people of each year of age for a stable demographic profile.
First, people probably won't ever live an average of 100 years. Second, you don't need a stable demographic profile. There's exactly no advantage to having elderly people onboard initially, for a number of reasons:
- Food production probably won't be able to be at full speed on day one unless you start the process long before you take off.
- Older people are less able to learn the new skills that they would need to be able to do repairs on the ship, etc., and are less likely to already know those skills.
- Older people are less able to do physical labor than younger people, and will therefore be more limited in their ability to contribute.
- Older people have fewer years to contribute before they stop being able to do so entirely and become a burden on the ship's limited resources.
I mean, if you want to all but guarantee that the younger folks turn sociopathic and throw the elderly out the nearest airlock on their 50th birthdays, a great way to start that story is by creating the generational ship with people of every age from day one, so that from the very beginning, they resent the elderly. If you actually want them to retain their humanity, you'll almost certainly want an upper age cutoff on the folks who go up in the initial wave.
And even if you decide that the cutoff should extend beyond child-bearing age, you sure as h*** don't want to bring twenty-four 90-year-olds. Half of them probably wouldn't even make it to orbit, and that's also not an accurate picture of normal demographics. There are fewer and fewer people the older you get, even if you ignore population growth, because some people die before they get to that age.
Over time, you want a fairly even distribution of age, but that will happen on its own. People don't turn 25 and suddenly say, "I want a baby." They have kids at different times, based on what's happening in their lives. Some won't have any kids at all. Some will have kids later in life. That means that the distribution going in doesn't really predict the distribution going out. There's a lot of entropy at work.
It probably does help, however, to have a roughly even percentage of people at each age throughout the age range where people typically have children. You don't want everybody to be 18, and you don't want everybody to be 45. As long as you have roughly the same number of people at each age within roughly the primary procreative band (ostensibly 18 to 60 for men, 18 to 45 for women, so probably pick the narrower of those two bands), you should end up with a fairly consistent rate of childbearing, in all likelihood.
It may also be problematic to not have children on the ship, because you would see a huge dip as though there had been no new children born for 20-ish years, and by definition, that wouldn't smooth out until about twenty years after the original crew dies. There are, of course, ethical questions about whether it is okay to do this, because kids aren't old enough to understand what's happening, and wouldn't really have any say in the matter, so it could also be problematic if you do have children on the ship, just in different ways.
On the other hand, not having any school-aged children for at least the first five years means more time to spend preparing the habitat for future increases in head count, building spare parts out of raw materials, leaning how the ship works, coming up with rules and procedures to ensure that things run smoothly, etc. And the only real disadvantage would be that it would take two decades before you would start having replacement people who are old enough to do useful work, which is probably fine if you cap the age at 45 or so, because by the time they're ready to retire, you'd have the first batch of replacements, and you probably won't lose *that* many people in the first twenty years. So the only big impact you'd expect from not starting with children onboard would be a 20-year-long dip in mortality when the oldest of the original crew reach their typical lifespan.
So really, I'd say that it's critical to be evenly spread across child-bearing ages, and that's probably the only thing that really matters much.