the son of Cainan, the son of Arphaxad, the son of Shem, the son of Noah, the son of Lamech,
The genealogies do not necessarily list every person in the line of descent. As is often the case, they may be selective and stylized, to make them fit a simple scheme. Matthew, for example, omits some names to produce an arrangement of three sets of fourteen (Matthew 1:17).