Is it not remarkable that Gen 5 and 11 show ten generations each? And are there not eleven generations listed in Luke 3?

From Adam to Noah (inclusive) was ten generations, while from Shem to Abram (also inclusive) was ten generations. Does this mean there was some contrivance? Not necessarily; such an isolated detail could easily have been a coincidence, or God could have arranged this as some sort of subtle lesson, though I confess I do not know what that would be. It could also, or instead, mean there was selection by an author or redactor of Genesis; in fact, there are eleven generations listed from Shem to Abraham in the genealogy of Luke 3:34-36. So, one might argue, perhaps there was a deliberate omission, and creating two sets of ten names seems a plausible explanation of the omission. The problem is that the earliest versions of Septuagint lack the name “Cainan” (as Genesis 11 lacks it), while some later versions added it. That would explain how Luke got it in his copy. Still, does this not represent an error in the inerrant text of Luke? Well, no, and here things get even more interesting. As the great Baptist theology John Gill has it, “This Cainan is not mentioned by Moses in Gen 11:12 nor has he ever appeared in any Hebrew copy of the Old Testament, nor in the Samaritan version, nor in the Targum; nor is he mentioned by Josephus, nor in 1 Chron 1:24 where the genealogy is repeated; nor is it in Beza’s most ancient Greek copy of Luke: it indeed stands in the present copies of the Septuagint, but was not originally there”. In other words, the name “Cainan” was added to the text of Luke by copyists who were relying on erroneous copies of the Septuagint to “correct” the text of Luke. So the originals of both Gen 11 and Luke 3 probably had ten names apiece. As to the whole issue of contrivance, see entries above that mention this concept; there is no new challenge here.