Matthew is said to have made editorial use of the genealogy in 1 Chronicles 1-3 for his own genealogy. Here’s how it appears in the Septuagint:
Now Abraam’s sons: Isaak and Ismael. …] And Abraam became the father of Isaak, and Isaak’s sons: Esau and Iakob. …]
These are the names of Israel’s sons: Rouben, Symeon, Leui, Iouda, Issachar, Zabulon, Dan, Ioseph, Beniamin, Nephthali, Gad, Aser.
Ioudas’ sons: Er, Aunan, Selon, three. They were born to him by the daughter of Saua, the Canaanite, and Er, Iouda’s firstborn was wicked before the Lord, and he killed him. And Thamar, his daughter-in-law, bore him Phares and Zara. Iouda’s sons were five in all.
Phares’ sons: Harson and Hiemouel. …]
And Heseron’s sons, who were born to him: Irameel and Ram and Chaleb and Aram. And Aram became the father of Aminadab, and Aminadab became the father of Naason, ruler of the house of Ioudas. And Naasson became the father of Salmon, and Salmon became the father of Boos. And Boos became the father of Obed, and Obed became the father of Iessai. And Iessai became the father of his firstborn Eliab; second was Aminadab; third was Samaa; fourth was Nathalael; fifth was Raddai; sixth was Asom; seventh Dauid. And their sister: Sarouia and Abigaia. …]
Hor’s sons, firstborn of Ephratha: Sobal, father of Kariathiarim, Salomon, father of Baithlaem, Harim, father of Baithgedor. And Sobal’s sons, father of Kariathiarim, were Haraa, Hesi, Hammanith, Emospheos, Iair’s city, Haithalim and Miphithim and Hesamathim and Hemasaraim; from these came the Sarathites and the Esthaolites. Salomon’s sons: Baithlaem, Netophathi, Atharoth of Ioab’s house and half of Manathi, Hesarei. Paternal families of scribes living in Iabes: Thargathiim, Samathiim and Sokathiim; these are the Kinites who came from Mesema, father of Rechab’s house. …]
And these were born to [Dauid] in Ierousalem: Samaa, Sobab, Nathan and Salomon, four by Bersabee daughter of Amiel, and Ibaar and Elisama and Eliphalet and Nage and Naphag and Ianoue and Elisama and Eliada and Eliphalet, nine. All these were Dauid’s sons, besides the sons of concubines, and Themar, their sister.
Salomon’s sons: Roboam, Abia his son, Asa his son, Iosaphat his son, Joram his son, Ochozia his son, Ioas his son, Amasias his son, Azaria his son, Ioathan his son, Achaz his son, Hezekias his son, Manasses his son, Amon his son, Iosia his son.
And Iosia’s sons: Ioanan his firstborn, the second Ioakim, the third Sedekia, the fourth Saloum.
And Ioakim’s sons: Iechonias his son, Sedekias his son.
And Iechonia-asir’s sons: Salathiel his son; Melchiram and Phadaias and Sanesar and Iekemia and Hosama and Denethi.
And Salathiel’s sons: Zorobabel and Semei, and Zorobabel’s sons: Mosollamos and Hanania and Salomith their sister and Hasoube and Ool and Barachia and Hasadia and Asobaesd, five.
(1 Chronicles 1:28, 34; 2:1-5, 9-16a, 50-55; 3:5-20 NETS)
You can see that in order to arrive at the number fourteen Matthew deliberately skipped some names: he omitted at least four kings (Ahaziah, J(eh)oash, Amaziah, Jehoiakim), three of which died violent deaths (2 Chronicles 22:1-9; 24:1-25, 28) apparently because of the curse laid upon the northern house of Ahab (1 Kings 21:21), to which they are in some degree related via Athaliah (2 Kings 11:1-3; something which both Chronicles and Matthew skips).
There are at least a couple of differences between Septuagint 1 Chronicles and Hebrew (Masoretic) 1 Chronicles. I mentioned the mystery ‘Aram’ who exists only in the Greek version; another difference is the Greek text’s having Zerubbabel (‘Zorobabel’) to be Shealtiel’s (‘Salathiel’) son - in agreement with passages like Ezra 3:2,8; 5:2, Nehemiah 12:1, Haggai 1:1,12,14 which name him as “son of Shealtiel” - instead of Pedaiah (‘Phadaias’), as in the Hebrew version.