To find hometowns that provided the right mix to meet the needs of multigenerational families, Fortune analyzed nearly 2,000 cities and towns across the U.S. Here are the communities that stood out.