High-resolution spectroscopy of the young open cluster M 39 (NGC 7092)

M 39 is a nearby young open cluster hardly studied in the last decades. No giant is known among its members and its chemical composition has never been studied. In order to investigate it we performed high-resolution spectroscopy of 20 expected cluster members with the HARPS and FIES spectrographs. By combining our observations with archival photometry and $Gaia$-DR3 data we searched for evolved members and studied cluster properties such as the radial velocity, extinction and age. For the first time, we provide stellar parameters and chemical abundances for 21 species with atomic numbers up to 56. We have not found any new giant as likely member and notice a negligible reddening along the cluster field, that we place at 300 pc. We obtain a mean radial velocity for M 39 of -5.5$\pm$0.5 km s$^{-1}$ and an isochrone-fitting age of 430$\pm$110 Ma, which corresponds to a MSTO mass of around 2.8 Msol. This value is consistent with the Li content and chromospheric activity shown by its members. Based on main-sequence stars the cluster exhibits a solar composition, [Fe/H]=+0.04$\pm$0.08 dex, compatible with its Galactocentric location. However, it has a slightly subsolar abundance of Na and an enriched content of neutron-capture elements, specially Ba. In any case, the chemical composition of M 39 is fully compatible with that shown by other open clusters that populate the Galactic thin disc


Introduction
The abundance and spatial distribution of the different chemical elements, as well as their variation over time, are keys to understanding the origin and evolution of our Galaxy.In the era of Gaia and large spectroscopic surveys, such as for example Gaia-ESO (Gilmore et al. 2022;Randich et al. 2022), GALAH (De Silva et al. 2015), and APOGEE (Majewski et al. 2017), Galactic archaeology is experiencing an unprecedented advance, significantly improving our knowledge of the structures and history of the Milky Way.Open clusters (OCs) are among the best tracers of the Galactic thin disc since they are disseminated throughout it, covering a wide range of distances and ages.Furthermore, the chemical cluster composition, usually based on the analysis of a large number of members, is more reliable than that obtained from individual field stars.The best tool for deriving accurate chemical abundances is highresolution spectroscopy.However, despite these large surveys and some others that are about to come into operation like WEAVE (Jin et al. 2023) and 4MOST (de Jong et al. 2019), only a small fraction of OCs (around 10%) have been observed in this way to date.This fraction could be even lower if we consider the newly discovered OCs (Hunt & Reffert 2023) in light of Gaia's third data release (Gaia-DR3, Gaia Collaboration 2023).
All spectra are publicly available at the TNG (http://archives.ia2.inaf.it/tng/).Thus, high-resolution spectroscopy, such as that conducted in this work, is highly necessary to continue studying our Galaxy in depth.
M 39 (also known as NGC 7092) is a sparse and nearby OC in Cygnus.It was first studied by Trumpler (1928), who classified it as a type 1a object.That means that the cluster hosts only main-sequence (MS) stars, in other words with no late-type giants, and not earlier than spectral type A. The most relevant works focused on M 39 date back several decades (see e.g.Ebbighausen 1940;Eggen 1951;Johnson 1953;Weaver 1953;Abt & Sanders 1973;Abt & Levato 1976;McNamara & Sanders 1977;Mohan & Sagar 1985;Manteiga et al. 1991;Platais 1994).The cluster has mostly been studied by combining photographic and photoelectric UBV photometry, spectral types obtained with low-resolution slit spectroscopy, and membership identification based on proper motions derived from photographic plates.These works determined the cluster properties by observing a small number of stars, a few dozen at best.Nonetheless, Platais (1994) provided photometry and proper motions for 7931 stars in the field of M 39, assigning spectral types to 511 of them.
The aforementioned studies agree that the cluster lies at around 300 pc and is practically unaffected by interstellar extinction.Among the MS stars, the earliest spectral type is found to be B9-A0 (e.g.Abt & Levato 1976), confirming the pioneering result of Trumpler (1928).As there are no evolved members, it has not been easy to accurately determine the age of the cluster, which appears to be in the 200−500 Ma1 range (Mohan & Sagar 1985;Manteiga et al. 1991).
Recently, Cantat-Gaudin et al. (2020), based on the Gaia second data release, placed M 39 at 311 pc, found no appreciable reddening in the cluster field, and estimated an age of about 400 Ma.To date, M 39 has not yet been observed with highresolution spectroscopy and its chemical composition remains unknown.The main aim of this paper is to fill this gap.We conducted the present investigation using high-resolution spectra, archival photometry, and Gaia-DR3 data, with the aim of characterising the main properties of the cluster.We paid particular attention to the determination of the chemical abundances of a large number of elements that allow us to perform the proper chemical tagging of our target.The paper is structured as follows.We present our observations in Sect. 2 and explain the search performed to identify new (evolved) cluster members in Sect.3.Then, in Sect. 4 we describe our spectral analysis and in Sect. 5 we study the cluster reddening.The investigation of the age is outlined in Sect.6, while the discussion and comparison of our main results with the literature are presented in Sect.7. Finally, we summarise our results and present the conclusions of this work in Sect.8.

Observations
A fundamental step when studying a stellar cluster is to carefully choose a representative sample of members.In this work the target selection was performed before the publication of the Gaia-DR2 catalogue.Therefore, as a starting point, we made use of the list of members identified by Platais (1994), the most comprehensive study focused on M 39 available in the literature.Then, we completed our target list, taking advantage of the selection made by Cantat-Gaudin et al. (2018).As was noted above, the cluster does not host any cool giants, and therefore our sample consists of MS stars only.For this reason, we paid special attention to the brightest stars located in the upper MS and the turn-off point (TO) that can help us to constrain the cluster age.

Spectroscopy
The observations were conducted mainly in October 2017.Highresolution spectroscopy was taken for our targets by employing two different spectrographs, both located at El Roque de los Muchachos Observatory (La Palma, Spain).Most of the sources, 17 of them, were observed with the High Accuracy Radial velocity Planet Searcher for the Northern hemisphere spectrograph (HARPS-N, Cosentino et al. 2014), while three other spectra were obtained with the Fibre-fed Echelle Spectrograph (FIES, Telting et al. 2014).HARPS-N is an échelle spectrograph fibre-fed from the Nasmyth B focus of the 3.6-m Telescopio Nazionale Galileo (TNG).It covers the wavelength range between 3900 and 6800 Å in 68 orders and provides a resolving power of R = 115 000.As regards FIES, it is mounted on the 2.5m Nordic Optical Telescope (NOT).It covers the spectral range 3700−9000 Å in 81 orders, being able to work at three different resolutions.We used the high-resolution mode, which provides a R = 67 000.Additionally, three other spectra were taken with HARPS-N in 2020.Notes. (a) Designation from Platais (1994). (b) Signal-to-noise ratio per pixel at 6500 Å.
The spectra were acquired with exposures times (t exp ) ranging from 300 to 7200 s, depending on the star brightness and sky conditions.To reduce the contamination of cosmic rays, we avoided taking exposures longer than 1800 s.A standard reduction of both sets of spectra was performed using the corresponding instrument pipeline.In total, we collected 24 spectra for 20 different stars, which are listed in Table 1.Throughout this paper we follow the numbering assigned by Platais (1994) to identify our targets.The star UCAC4 683−104396, a bona fide member according to Cantat-Gaudin et al. (2018) observed in our last run, is out of the field surveyed by Platais (1994).For this reason we use "UCAC" as a shorthand designation for this star.

Archival data
To complement our spectroscopic observations we resorted to archival data provided by some all-sky surveys.This information would prove very useful later as it would allow us to study both the cluster members and the cluster itself.On the one hand, we used photometric data in the optical range from the APASS catalogue (Henden et al. 2016) and in the near-infrared wavelengths from the 2MASS (Skrutskie et al. 2006) and WISE (Cutri et al. 2012) catalogues.On the other hand, we took advantage of the last data release, DR3, of the Gaia mission (Gaia Collaboration 2023).Tables A.1 and A.2 report the Gaia-DR3 source identifier as well as the photometric and astrometric data for the stars observed in this work at the end of the paper.

Cluster membership
The disentangling of cluster members from field stars is not a trivial task.However, to succeed in the characterisation of the cluster, a correct identification of its members is essential.The arrival of a large amount of high-precision photometric and, specially, astrometric data from the Gaia mission, has been of great help in simplifying this task.Platais (1994) observed about 8000 stars in the field of M 39 and identified 511 likely members among them.His analysis was based on UBV photometry and proper motions measured on photographic plates.As was mentioned above, we selected our targets from this list.Specifically, we took 19 high-probability members, that is, with an assigned membership probability, P ≥ 0.7, among the brightest.Cantat-Gaudin et al. (2018), taking advantage of the Gaia-DR2, identified 198 members, out of which 154 bona fide members (i.e. with P ≥ 0.7) were found.Among our targets, 14 are also high-probability members according to them, while the remaining five stars, namely 3004, 3423, 4294, 5045, and 5609, are not considered by them to be cluster members.In a second run, we observed the star UCAC, a likely member reported in Cantat-Gaudin et al. (2018), out of the field studied by Platais (1994).
With the intention of finding new members, and especially some giant that would allow us to improve the estimation of the cluster age when performing the isochrone fitting, we carried out a search around the nominal centre of the cluster.We took all the sources from the Gaia-DR3 catalogue brighter than G = 18 within a radius of 250 around it.In total we collected ≈1 250 000 objects with a complete set of astrometric (i.e.µ α * , µ δ , ) and photometric (G, G BP , G RP ) parameters.Cantat-Gaudin et al. (2018) placed M 39 in the astrometric space at (µ α * , µ δ , ) = (−7.477,−19.738, 3.337) ± (0.381, 0.393, 0.090) (mas, mas a −1 , mas a −1 ).When updating the Gaia param- eters from DR2 to DR3 for the members reported in that paper we noticed a non-negligible dispersion in the astrometric data, but not in the photometric values (see Figs. A.1 and A.2).For this reason we decided to recalculate the cluster centre, adopting the average DR3 values of their bona fide members.Thus, we now found the cluster at (µ α * , µ δ , ) = (−7.459,−19.839, 3.367) ± (0.345, 0.419, 0.088), where the errors correspond to the standard deviation.Once we determined the cluster centre in the astrometric space, we adopted a radius around it of 3σ, 4σ, and 5σ as a membership criterion to define three classes of members: type I (high probability), type II (medium probability), and type III (marginal membership), respectively.In this way, we identified 196, 48, and 27 likely members within these three radii, finding 147, 5, and 0 bona fide members from Cantat-Gaudin et al. (2018), respectively.
As a second step, we refined our selection of members by means of photometry.We plotted the (G BP −G RP )/G diagram and rejected those objects (six in total) whose position on the diagram was discrepant, since they lay far away from the sequence of the cluster, which is clearly outlined.Finally, we also used the Gaia RV to improve our member list.As a result, five other objects have been identified as outliers, and therefore their membership has been ruled out (see Sect. 4.1).Our final member list is composed of 260 objects, out of which 195 are considered type I, 43 belong to type II, and the remaining 22 are classified as type III members.The cluster probabilities for all our targets are listed in Table A.1 and the colour-magnitude diagram is displayed in Fig. 1.
We point out that the cluster is well defined in the astrometric space and contamination from field stars is low (see Fig. 2).We have expanded the member list provided by Cantat-Gaudin et al. (2018) by about 30%, but nevertheless we have not found any giants.According to our criterion we observed 17 highprobability members among our targets, while we had to reject stars 3004, 3423, and 4294 as cluster members.Therefore, their parameters were not used in calculating the average values of the cluster.
By examining the spatial distribution of the members in the RA-Dec plane (Fig. 3) we found the cluster centre by fitting a Gaussian to the histogram showing the projected A75, page 3 of 16  2018), ours minus theirs, ∆(α, δ) = (−10.0s ,−3.2 ).Likewise, from the parallaxes of the members we derived the distance to the cluster.Firstly, we corrected the parallax zero-point offset for each star following the recommendations outlined by Lindegren et al. (2021).As a guide, we found that, on average, this correction was of −0.032 mas with respect to the published value.We then calculated the individual distances by inverting the corrected parallaxes and, finally, the cluster value was obtained after fitting a Gaussian to the distribution of the member distances.We place the cluster at 294 ± 7 pc, where the error is the σ of the Gaussian.

Spectral analysis
Before starting the spectral analysis, the telluric H 2 O lines at the Hα and Na i D 2 wavelengths, as well as those of O 2 at 6300 Å, were removed from the spectra.The same procedure described by Frasca et al. (2000) was followed.For this purpose we used telluric templates (spectra of hot, fast-rotating stars) acquired during the observing run.

Radial velocity
The first step of our analysis consists of measuring the heliocentric radial velocity (RV) of the observed objects.With this aim we cross-correlated the target spectra against synthetic templates by using task fxcor of the IRAF2 package.When examining the cross-correlation function (CCF), we note that stars 3423, 3781, and 3814 exhibit a double or a strongly asymmetric peak, which clearly suggests a binary nature (see Fig. A.3).However, since we have a single spectrum for each of them in which the peaks are not fully resolved, we cannot provide orbital and stellar parameters and can only classify them as likely double-lined spectroscopic binaries (SB2s).We provide the RV of their primary (more luminous) and secondary components in Table 2.For the remaining stars, considered single for all purposes, the RVs are displayed in the last column of Table 3.
With the exception of the SB2 systems and 5609 (a fast rotator), most of the stars have an RV that ranges from −6 to −3 km s −1 .We obtained a mean RV for the cluster, RV = −5.46 ± 0.54.This weighted average was calculated using as the weight w = 1/σ 2 RV , where σ RV is the RV error of each star.The weighted standard deviation was used to estimate the uncertainty.We compared our result with the Gaia RVs of our likely members, which were first identified based on astrometry and photometric criteria (Sect.3).Among them, an RV is provided for only 122 stars.We derived the cluster mean by fitting a Gaussian to the distribution of the individual values, obtaining RV = −6.1 ± 2.3 km s −1 .We notice that our result shows strong agreement with Gaia RVs.Additionally, based on these RVs, we rejected five objects as members since their values, within the errors, are beyond 5σ the cluster average (see Fig. A.4).However, we cannot exclude that these stars are indeed binary systems and that the discrepant RV, compared with the cluster mean, is the result of the orbital motion.

Atmospheric parameters
The stellar atmospheric parameters of our targets, that is, the effective temperature (T eff ), surface gravity (log g), and metallicity ([Fe/H]), were determined by using the ROTFIT code (Frasca et al. 2006), tailored to our data, as was already done in previous works (see e.g.Frasca et al. 2019;Alonso-Santiago et al. 2021).Additionally, ROTFIT also provides the projected rotational velocity (v sin i) and the spectral type (SpT) for each star.ROTFIT works by performing a χ 2 minimisation of the difference between the target spectrum and a grid of templates.This difference is evaluated in 28 spectral segments of 100 Å each from 4000 Å to 6800 Å.Then, the final parameters are calculated by averaging the results of the individual regions, weighting them according to the χ 2 and the amount of spectral information contained in each segment.The grid of templates consists of ELODIE spectra (R = 42 000) of real stars with well-known parameters.It is the same grid used by the Catania node within the Gaia-ESO Survey (Smiljanic et al. 2014;Frasca et al. 2015).Since ROTFIT is optimised to analyse FGK-type stars, for the hottest targets we employed a different approach for which we used a grid of synthetic spectra computed, as is described in Sect.4.3.For these stars we used A75, page 4 of 16 the wings and cores of Balmer lines to determine T eff and log g.
The v sin i was derived in a region around the Mg ii λ4481 line, while a solar metallicity was assumed as the rapid rotation of these sources makes it very difficult to measure it.More detailed information on our method can be found in Frasca et al. (2019).
The results are summarised in Table 3.The metallicities reported in Table 3 were refined by applying SYNTHE to our spectra (see Sect. 4.3) and adopting the [Fe/H] values derived with ROT-FIT as a starting point.However, these values practically do not change within the error bars.

Chemical abundances
We calculated the elemental chemical abundances of our targets, following the same procedure adopted in some of our previous works related to the SPA project (see, e.g.Frasca et al. 2019;Alonso-Santiago et al. 2021), which is based on the spectral synthesis technique (Catanzaro et al. 2011(Catanzaro et al. , 2013)).As a first step, we computed 1D local thermodynamic equilibrium (LTE) atmospheric models with the ATLAS9 code (Kurucz 1993a,b), adopting the ROTFIT atmospheric parameters (Sect.4.2).Then, we generated the corresponding synthetic spectra using SYNTHE as the radiative transfer code (Kurucz & Avrett 1981).We compared the observed spectra with the synthetic ones (adequately broadened, taking into account both the instrumental profile and the rotational one) in 39 spectral segments of 50 Å each between 4400 and 6800 Å.Finally, by minimising the χ 2 of their differences, the chemical abundances were found.We find that the cluster, on average, exhibits a solar-like composition, with a metallicity of [Fe/H] = +0.04 ± 0.08 dex.Only Na shows a significant subsolar abundance ([Na/Fe] = −0.25 ± 0.13).For the α-elements, the weighted-mean ratio is [α/Fe] = +0.12± 0.10 dex, with S being overabundant with respect to the other elements ([S/Fe] = +0.30± 0.12).The Fepeak elements show a solar ratio, [X/Fe] = +0.05± 0.10 dex, while the neutron-capture ones, especially Ba, have a supersolar value, [s/Fe] = +0.28 ± 0.10 dex.As was expected, a homogeneous chemical composition is observed among the cluster members, with the only exception being star 3061, which in general displays lower abundances (i.e.Fe and Ti, see Fig. 4).On the contrary, star 3004, which was discarded as a member (see Sect. 3), has a chemical composition compatible with that of the cluster.
A75, page 5 of 16 ical composition similar to that of other cluster members, while star 3061 exhibits a somewhat lower value, which is also suggested by its shallower lines.

SED fitting and reddening
In order to evaluate how our observations are affected from interstellar extinction (A V ), we resorted to the spectral energy distribution (SED) fitting tool, as was previously done in other works (Frasca et al. 2019;Alonso-Santiago et al. 2021).For each of our targets we fitted the corresponding SED with BT-Settl synthetic spectra (Allard 2014).To build the SED, on the one hand we made use of publicly available optical and near-infrared photometric data.Specifically, we used the BVg r i (from the APASS catalogue, Henden et al. 2016), JHK S (2MASS, Skrutskie et al. 2006), and W 1 W 2 W 3 W 4 bands (WISE, Cutri et al. 2012).On the other hand, we adopted the atmospheric parameters (T eff and log g) derived in Sect.4.2 as well as the (corrected) Gaia-DR3 parallax.The stellar radius (R) and the A V were set as free parameters.Their best values were obtained by χ 2 minimisation.The errors on A V and R were found by the minimisation procedure, considering the 1σ confidence level of the χ 2 map, but we also took the error on the T eff into account.An example of this fitting is shown in Fig. 5.The results of the SED fitting are reported in Table 5.Among the members analysed, the A V ranges from 0.00 to 0.38 mag, with an average of A V = 0.06 ± 0.10, where the error is the standard deviation.For most stars the reddening is on the cluster average, with only star 7140 showing a slightly different value, 0.38 mag, the largest in the sample.If we recalculate the average without taking this star into account we obtain A V = 0.04 ± 0.05 mag, where the dispersion has decreased.This result indicates that extinction is negligible in the cluster field, in good agreement with the literature (Cantat-Gaudin et al. 2018, A V = 0.0 mag).

Colour-magnitude diagrams
To investigate the cluster age, we resorted to the isochrone-fitting method.As a first step, we used archival photometry to plot the colour-magnitude diagram (CMD) of the cluster, which is a snapshot of its evolutionary stage.Then, we looked for the age-dependent model, the isochrone, that best reproduced the position of the cluster members on the CMD.To compute the different isochrones we took advantage of the results previously obtained from spectroscopy, that is the metallicity (Sect.4.3) and reddening (Sect.5).
We used three different photometric systems (Johnson, 2MASS, and Gaia) to construct the following diagrams: M V /(B− V) 0 , M K S /(J − K S ) 0 , and M G /(G BP − G RP ) 0 .In each of the diagrams the number of plotted members is different (111, 252, and 265, respectively) since photometric data was not always available for all of them.To convert apparent to absolute magnitudes we used the individual distance of each source.We calculated it as the inversion of the parallax, once it was corrected, as is explained above (Sect.3).
In the first two CMDs, the reddening was corrected individually for those stars observed in this work with the value previously derived, while for the remaining stars the mean cluster value was applied.In the Gaia CMD we made use of the A G and E(G BP − G RP ) published in DR2.When comparing all the three CMDs we immediately realised that the brightest stars in the upper MS behaved anomalously in the M V /(B − V) 0 diagram compared to the other two.This is due to the fact that these stars (with V ≈ 7 mag) are likely saturated in the APASS photometry.In order to fix this issue we resorted to the ASCC2.5 catalogue (Kharchenko & Roeser 2009), from which we took V and (B−V) for six stars brighter than V = 8 after scaling both photometric datasets3 .The distribution of these stars on the CMD improved considerably after this correction, so that we decided to use these Once the de-reddened CMDs were built, we overplotted on them a set of isochrones of different ages to find the one that best reproduced the distribution of the cluster members, and thus find the likely age of the cluster.We used PARSEC isochrones (Marigo et al. 2017) computed at the metallicity found in this work ([Fe/H] = 0.04) in a wide range of ages (log τ = 8.2−8.9, which corresponds to ages from 160 to 780 Ma).We carefully examined by eye how well the isochrones (in steps ∆ logτ = 0.01) fitted the CMDs.Since there are no giants we had to pay attention to the stars located in the upper part of the MS.We noted that the best-fitting isochrone is not exactly the same in all the diagrams, but is perfectly compatible within the errors.From the optical CMD we find an age for the cluster of 460 ± 100 Ma, similar to that obtained from the infrared one, 400 ± 150 Ma.The errors represent the interval of isochrones that are capable of reproducing the CMD.
In the case of the Gaia CMD, it is worth highlighting the role that reddening plays.As was previously commented upon, we started by taking the Gaia data for the reddening and extinction.When available, we used individual values, as we did in previous works.However, for the remaining members, we estimated these two values by averaging those of the five nearest stars (using their distances as weights).Nevertheless, the average reddening that can be deduced for our members from the Gaia DR3 catalogue, namely A G = 0.30 ± 0.23 and E(G BP − G RP ) = 0.20 ± 0.14, is quite different from the one calculated by us and exhibits a greater dispersion.When adopting it, the age of the cluster becomes ≈300 Ma, somewhat younger than the age derived from the other CMDs.If we instead redden the isochrone with the A V derived in this work, the dispersion of the stars along the MS decreases and the isochrones fit the CMD better.In this way, the cluster turns out to be of 420 ± 80, a value between those derived from the other two CMDs.This difference between our extinction and that derived from Gaia data could be explained by the known fact that Gaia-DR3 tends to overestimate the extinction in areas of the sky where its value is very low (Andrae et al. 2023;Babusiaux et al. 2023;Fouesneau et al. 2023).
Finally, the definitive age of the cluster was obtained by averaging the estimates derived from each CMD, using the individual uncertainties as weights.The resulting value is 430 ± 110 Ma, which corresponds to a MSTO mass of around 2.8 M .As the error we took the mean of each uncertainty.The CMDs, along with the best-fitting isochrones and their uncertainties, are shown in Fig. 6.This result agrees very well with that reported in Cantat-Gaudin et al. (2020).

Radial and rotational velocities
M 39 was one of the nearby clusters containing FK dwarfs observed by Mermilliod et al. (2009).They derived radial and rotational velocities for 24 stars in the cluster field, out of which six stars are also included in our sample.Star 3423 is one of the targets in common in both studies, but in our spectrum it appears as an SB2, with two strongly blended peaks in the CCF, whose velocities are RV 1 = −7.98 ± 1.47 km s −1 and RV 2 = −2.09±0.19km s −1 , with the former having a much larger width compared to the latter (see Fig . A.3). Mermilliod et al. (2009) reported no binary signature for this star.This likely arose from them having observed the system near to a conjunction.In fact, they measured an RV = −5.90± 0.73 km s −1 , which, if considered as the RV of the centre of mass of the system, is in good agreement with the mean of the RVs of the two components in our spectrum.For the remaining five objects, both sets of measurements, RV and v sin i, are in excellent agreement in both papers (see Table 6).In addition, the mean RV of the cluster calculated by Mermilliod et al. (2009) from 17 members, RV = −5.26± 0.30 km s −1 , is fully compatible with that derived in this work.

Chromospheric emission and lithium abundance
One way of estimating the age of the stars that form the cluster, independent of the isochrone-fitting method, is evaluating the level of magnetic activity (e.g. the emission in the cores of lines formed in the chromosphere) and the abundance of Li present in their atmospheres.This is valid for stars cooler than ≈6500 K and with ages between a few ten and a few hundred Ma (see Jeffries 2014;Frasca et al. 2018, and references therein).
In order to perform this task we applied the subtraction technique.It consists of subtracting the spectrum of a pertinent template from that of the target to measure the excess emission in the chromospheric lines and the equivalent width of the Li i λ 6708 Å absorption line (EW Li ).An example of this procedure is shown in Fig. 7.As templates we used the spectra of non-active and lithium-poor stars, Doppler-shifted and rotationally broadened by ROTFIT.As diagnostics of activity we used the Balmer Hα line and the Ca ii H & K lines.The latter lines are located in the bluest part of the spectra where the S/N is very low, but degrading the spectra resolution from 115 000 to that of ELODIE (R = 42 000) allowed us to improve the S/N and apply the spectral subtraction.For the Ca ii lines, the photospheric templates were made with synthetic BT-Settl spectra (Allard 2014), as we did in Frasca et al. (2023a), because they are best suited to reproduce the photospheric spectrum without any chromospheric contribution compared to the low-activity real stars.Indeed, for the latter, a small line emission or filling is very often present in the cores of the Ca ii H & K lines.
From the atmospheric parameters and the EW Li we estimated the lithium abundance, A(Li), by interpolating the curves of growth of Soderblom et al. (1993), calculated in the T eff range A75, page 7 of 16

420±80 Ma
Fig. 6.Colour-magnitude diagrams for M 39 in three different photometric systems.Left: M V /(B−V) 0 , photometric data from the APASS catalogue.Centre: The small black points are the members selected in this work and the orange circles mark those ones observed spectroscopically.The green lines and the shaded area are the best-fitting isochrones with the associated uncertainties.The age derived from each CMD is also shown.To estimate the age of the cluster from the content of photospheric lithium, we also used the EAGLES code (Jeffries et al. 2023), as we did in Frasca et al. (2023b).This code, based on an empirical model, is very suitable for a cluster since it determines the age probability distribution for the ensemble from the T eff and EW Li of its members.In the present case, we obtained an age for M 39 of τ = 570 +270 −190 Ma (see Fig. 9).This value is greater than the one obtained with the fitting-isochrone method, but compatible within the errors.In any case, the age uncertainty is larger than one could expect, mainly due to the data scatter and the poor T eff distribution of the targets, and it does not provide us with a good age constraint.
The excess Hα equivalent width, EW em Hα , was obtained by integrating the Hα emission profile, resulting from the subtraction of the photospheric template, which is highlighted by the hatched green area in the difference spectra of Fig. 7. Simi- larly, the difference between the observed and template spectra in the Ca ii region leaves emission excesses in the cores of the H and K lines, whose integration provides the equivalent widths, EW CaII−H and EW CaII−K .More effective indicators of chromospheric activity are the chromospheric line fluxes at the stellar surface, F line , and the luminosity ratios, R line = F line /F bol , where eff is the bolometric flux.For the Ca ii K, the line flux can be calculated as where F 3933 is the flux at the continuum at the centre of the Ca ii-K line per unit stellar surface area, which is evaluated from the BT-Settl spectra (Allard 2014) at the stellar temperature and surface gravity of the target.The flux error includes the error in the equivalent width and the uncertainty in the continuum flux at the line centre, which is estimated by propagating the errors of T eff and log g.
A75, page 8 of 16 We computed surface fluxes for the other chromospheric diagnostics in the same way as for the Ca ii-K line.The EWs, fluxes, and luminosity ratios are reported in Table 8 for the solartype stars (T eff < 6500 K).We used the age-activity relation proposed by Mamajek & Hillenbrand (2008) to estimate the age of M 39.From their Eq.( 3) and our values of R HK , which are reported in Table 8, we estimate an age of 250 ± 150 Ma, which is smaller than the values derived from both the CMD and lithium isochrones, but marginally compatible with them if we consider the large age errors.

Galactic metallicity gradient
Open clusters are known to be among the best tracers of the radial distribution of metallicity in the Galaxy, the so-called Galactic gradient.With the aim of evaluating how the metallicity obtained in this work for M 39 compares with this gradient, we searched for a sample of homogeneously analysed clusters from the literature.We gathered the metallicity derived with high-resolution spectroscopy within the framework of the Gaia-ESO (Randich et al. 2022) and OCCAM (APOGEE-DR17, Myers et al. 2022) surveys.Additionally, clusters targeted in the SPA project (Frasca et al. 2019;D'Orazi et al. 2020;Casali et al. 2020;Zhang et al. 2021;Alonso-Santiago et al. 2021) and some other young open clusters studied by our group complete the sample (Alonso-Santiago et al. 2017, 2018, 2019, 2020).
In total, we collected a sample containing nearly two hundreds clusters at Galactocentric distances, R GC , up to 16 kpc.
The position of M 39 on this gradient is shown in Fig. 10.The metallicity, as the abundance of iron, was referenced to A(Fe) = 7.45 (Grevesse et al. 2007).Galactocentric distances were taken from Cantat-Gaudin et al. ( 2020), who calculated them from Gaia-DR2 astrometry, and using as a reference a solar value of R = 8.34 kpc.As can be seen, the metallicity derived A75, page 9 of 16  in this work is compatible with that expected for the cluster location.

Chemical composition and Galactic trends
As commented on before (see Sect. 1), this work provides for the first time chemical abundances for M 39.Thus, due to the lack of specific literature with which to compare our results, we resorted to the chemical trends displayed by Galactic open clusters.We used the same sample previously employed when discussing the Galactic gradient but in this case chemical abundances for the GES (iDR6) and SPA clusters were taken from Magrini et al. (2023) and Zhang et al. (2022) respectively, since Randich et al. (2022) and Zhang et al. (2021) only provided metallicity values.We compared the chemical composition of M 39 with that of the other open clusters collected in our sample.Figure 11 shows the ratios [X/Fe] versus [Fe/H] for 16 chemical elements (scaled to the solar abundances listed in Grevesse et al. 2007).The abundances of M 39 are in great agreement with the trends outlined by so many other open clusters collected in our sample and, therefore, we conclude that its chemical composition is fully compatible with that of the Galactic thin disc.All the elements are on the trends or slightly above them.Only Na, the sole element in the sample with a clearly subsolar abundance, and S, are located further away from the bulk of the rest of the clusters, but always in a compatible place.

Summary and conclusions
We conducted this research with the idea of adding one more tile to the mosaic of Galactic archaeology that will help us improve our knowledge about the formation and evolution of the Milky Way.We focused on M 39, a nearby young open cluster little studied in recent years, whose chemical composition was so far unknown.We performed high-resolution spectroscopy with the HARPS-N and FIES spectrographs for 20 likely cluster members that were supplemented with archival photometry and Gaia-DR3 data.
According to the literature, M 39 is formed only by MS stars.In order to find any giant that belongs to the cluster we searched for new members.We recalculated the members identified by Cantat-Gaudin et al. (2018), taking advantage of the latest Gaia-DR3 astrometry.We expand their list, finding 260 likely members within a radius of 250 around the nominal cluster centre.Among them, no evolved stars have been found.By examining the spatial distribution of the members we infer a distance to the cluster of 300 pc.
We find three SB2s in our sample.For the remaining stars, we derived their radial and projected rotational velocities and estimated the extinction and their atmospheric parameters.Additionally, for the coolest stars, nine in total, we carried out a chemical analysis, providing abundances for 21 elements.We do not find a significant reddening along the cluster field and estimate a mean RV of −5.5 ± 0.5 km s −1 .By fitting isochrones on three different CMDs we find an age for the cluster of 430 ± 110 Ma, which is consistent with the content of Li and chromospheric activity found among the members.
M 39 shows a solar-like metallicity, [Fe/H] = +0.04 ± 0.08 dex, which is consistent with that expected for its Galactocentric distance.We performed the first detailed study of the chemical composition of the cluster to date.We determined the abundances of C, odd-Z elements (Na, Al), α-elements (Mg, Si, S, Ca, Ti), Fe-peak elements (Sc, V, Cr, Mn, Co, Ni, Cu, Zn), and s-elements (Sr, Y, Zr, Ba).The cluster stars have a chemical composition similar to that of the Sun.Only Na shows a lower abundance, while S and the heaviest elements, especially Ba, display higher values.Its ratios [X/Fe] are in line with the Galactic trends displayed by the large sample of open clusters studied in surveys such as the Gaia-ESO, OCCAM, or SPA.The cluster shows solar-like mean ratios for α ([α/Fe] = +0.12± 0.10 dex and Fe-peak elements ([X/Fe] = +0.05± 0.10 dex), while for the neutron-capture elements the ratio is slightly overabundant ([s/Fe] = +0.28 ± 0.10 dex).Finally, we conclude our research by claiming that the chemical composition of M 39 is fully compatible with that of the Galactic thin disc.(Henden et al. 2016).b From the 2MASS catalogue (Skrutskie et al. 2006).c From the Gaia-DR3 catalogue (Gaia Collaboration 2023).* Scaled from the V and (B − V) values of Kharchenko & Roeser (2009) and the relation proposed in the present work.

Fig. 1 .
Fig. 1.Gaia colour-magnitude diagram of M 39 displaying the members identified in this work.The colour indicates the membership class, as is defined in the text.

Fig. 2 .
Fig. 2. Proper motion diagram in the field of M 39.The extent of the cluster in the astrometric space is delimited by the ellipse, whose semiaxes correspond to five times the uncertainty of the mean µ α * , µ δ values.Grey dots represent sources with G ≤ 16 mag within a radius of 250 around the nominal cluster centre.

Fig. 3 .
Fig. 3. Sky region around M 39.The density map represents sources with G ≤ 16 mag within a radius of 250 around the nominal cluster centre while the blue circles are the members identified in this work.A histogram showing the member distribution along each axis is also displayed.

Fig. 4 .
Fig. 4. Comparison of the spectra of two cluster stars with similar stellar parameters in the region of the Mg ib triplet.Star 4438 shows a chem-

Fig. 5 .
Fig. 5. Top: SED fitting of the star 5609.Bottom: χ 2 -contour map of the fitting.The red line corresponds to the 1σ confidence level.

Fig. 7 .
Fig. 7. Spectral subtraction for the star 0305 in the Li i λ6708 Å, Hα, and Ca ii H & K lines (from top to bottom).

Fig. 8 .
Fig. 8. Lithium abundance as a function of T eff for the solar-type members (T eff < 6500 K).The upper envelopes of A(Li) for four young clusters adapted from Sestito & Randich (2005) are overplotted.

Fig. 10 .
Fig. 10.Radial metallicity gradient from open clusters studied in the framework of the Gaia-ESO and OCCAM Surveys, the SPA project, and some other clusters analysed by Alonso-Santiago.Black lines link results for the same cluster provided by different authors.The star represents the metallicity found in this work for M 39.

Fig. 11 .
Fig. 11.Abundance ratios [X/Fe] vs. [Fe/H].Symbols and colours are the same as in Fig. 10.The dashed lines show the solar value.

FigFig. A. 2 .
Fig. A.1.Astrometric data for the cluster members identified by Cantat-Gaudin et al. (2018) in Gaia-DR2 and Gaia-DR3.The lightest colour in each panel represents the stars observed in this work.For each parameter the mean difference (DR3-DR2) and its dispersion are indicated in the upper left part of the plots.

Fig
Fig. A.3.Cross-correlation functions (CCFs) for the three newly discovered spectroscopic binaries.In each box, the CCF is depicted with a full black line.The two-Gaussian fit is over-plotted with a dotted green line, while the Gaussians reproducing the primary (more luminous) and secondary components are plotted with dashed blue and red lines, respectively.

Fig. A. 5 .
Fig. A.5. Example of spectral synthesis for the stars in our sample with lower v sin i.The two most intense spectral features in this range (5680-5700 Å) correspond to Na i lines, the abundance of which is shown.

Table 2 .
Radial velocities of the newly discovered SB2 systems.

Table 3 .
Stellar parameters derived for the stars observed in this work.
Notes. (* ) Solar metallicity has been adopted for the hottest stars of our sample, as is explained in the text.
In this way, for those stars with T eff < 7500 K, nine in total, we investigated 21 elements with atomic number up to 56, namely C, Na, Mg, Al, Grevesse et al. (2007)Cr, Mn, Fe, Co, Ni, Cu, Zn, Sr, Y, Zr, and Ba.Individual abundances are listed according to the standard notation A(X) = log[n(X)/n(H)] + 12 in Table A.3 and an example of the spectral synthesis is shown in Fig.A.5.The cluster average composition, relative to solar abundances byGrevesse et al. (2007), is also reported in Table4.For each element, it was calculated by taking the weighted average of the values for each

Table 5 .
Results of the SED fitting.

Table 7 .
Li i λ 6708 Å equivalent width and abundance of the cool stars observed in this work.

Table 8 .
Hα and Ca ii H & K equivalent widths and fluxes.

Table A .
1. Gaia DR3 astrometric data and cluster membership, according toPlatais (1994, P Pl) and Cantat-Gaudin et al. (2018, P CG ), for all stars observed spectroscopically in this work (P T W ).
Table A.2. Photometry for stars observed spectroscopically in this work.