There are some names here that are strange. I mean, they shouldn't be in here. This is not an orthodox genealogy. There's the name Tamar, for instance, right near the beginning. Blood lines in patrilineal societies are traced through men.
Women never figure into the genealogies of biblical times.
And especially not women like Tamar. What's more, she was a Canaanite, and not a Jew. The Canaanites were ancient enemies of the Jews. A little while later you come to the name of Rahab, another woman. Not only that, Rahab was a prostitute.