Life on Earth is mainly depending on five (chemical) elements: C, N, O, S and P. While P (phosphorus) plays a crucial role for deoxyribonucleic acid (DNA) and is the primary constituent in energy exchange in cells, in the form of adenosine triphosphate (ATP) and adenosine diphosphate (ADP)1,2, phosphorus is the less abundant element of all five in the Solar System3. Yet the origin of phosphorus remains unclear. Since the publication of Burbidge et al.4 in 1957 (aka B2FH), we know that almost all chemical elements that are present in the Universe come from various generations of stars. Chemical evolution models trace the history of these elements all along the Galactic history by relying on a broad set of nucleosynthetic theoretical yields (mostly from stars) and by taking into account various stellar formation rates and initial stellar mass distributions. The resulting calculations are compared with observed elemental abundances derived from stellar spectra over various metallicities, Galacto-centric distances and stellar populations, including our Sun. While the most recent chemical evolution models successfully predict many elemental abundances across the Galaxy5,6,7, they underestimate the (rare) observations of phosphorus (Fig. 1); in particular at low metallicity where all the available models systematically predict about three times less phosphorus than observed. This suggests that the main nucleosynthetic source of phosphorus is neglected in the models of chemical evolution or even possibly unknown.

Fig. 1: Phosphorus abundances as a function of metallicity.
figure 1

Red stars and black diamonds show, respectively, the P-rich and P-normal stars analyzed in this work. Error bars represent measurement uncertainties such as shown in Supplementary Tables 2 and 4. The P-normal stars are the group of comparison (twins) stars with very similar stellar parameters to the P-rich ones but with a chemical abundance pattern similar to field stars (see Methods: Chemical abundance analysis). The dotted line shows the empirical definition adopted here to distinguish the P-rich stars from the P-normal ones. Open squares, crosses, and plus signs are literature values from ref. 8, ref. 13 and refs. 11,12, respectively. The long-dashed line shows the chemical evolution model from ref. 5, short-dashed line from ref. 6 and solid line from ref. 7 Error bars have been adopted from same literature references.

Phosphorus is extremely difficult to measure in stellar spectra because its lines are inherently weak and are only available in the near-IR or UV spectral ranges, which very few high-resolution spectrographs can actually cover. The astronomical restrictions are such that only few recent studies8,9,10,11,12,13 have succeeded in measuring phosphorus in other stars than the Sun. Fortunately, the APOGEE spectrograph14 (see Methods: Searching for P-rich stars) operates in the near-IR (H-band) and thus offers a unique opportunity to detect and measure phosphorus from stellar spectra. Here we present the discovery of chemically peculiar stars, showing very high phosphorus abundances and for which there are currently no theoretical predictions that can explain such chemical pattern.


Detection of 15 phosphorus-rich stars

From the APOGEE spectral catalog containing now several hundreds of thousands of Galactic stars (mainly red giants), we could extract 15 objects that show clear P I spectral absorption features (Figs. 2, 3). Once these P-detected stars have been identified, we run a full detailed chemical abundance analysis, deriving the main stellar parameters (i.e., Teff, log g, [Fe/H], etc.; Supplementary Table 1) and P abundances together with the chemical abundances of many elements as possible also present in the APOGEE spectra. In Fig. 4, we show the resulting chemical abundance pattern along with the one observed in a control sample composed by twin stars (i.e., stars with very similar stellar parameters but with very weak phosphorus absorption features; the P-normal stars hereafter; Supplementary Table 2). It is very striking that the P-detected stars have not only very large P abundances but also enhanced O, Mg, Si, Al and Ce as compared to the P-normal stars that display the chemical abundance pattern typical of the well-known field stars (Fig. 4). The [P/Fe] abundance ratios are in the range 1.2 to 2.2 dex (i.e., ~10–100 larger than the Sun value on a logarithmic relative metallicity scale) with a typical estimated uncertainty of 0.1 dex (Supplementary Table 3). The radial velocities and the metallicity range (−1.05<[Fe/H]<−0.75) of P-rich stars suggest that these stars belong to the old stellar population of the Galactic thick disk or inner halo. Furthermore, the available photometric and distance data for the P-rich stars are consistent with low-mass giants (~1 M) with luminosities less than 1700 L (Supplementary Table 1). Such low-mass stars are not expected to produce themselves P, O, Si, Mg, Al or Ce.

Fig. 2: Sample spectra of P-rich stars.
figure 2

Observed H-band spectra (in black) of three P-rich stars and P-normal stars (ac) around the two P I absorption lines at 15711.5 and 16482.9 Å. A gap in between wavelengths has been introduced to highlight the wavelength discontinuity. The best model spectra (respectively in red for the P-rich stars and green for the P-normal stars) are shown together with model spectra without the P lines (in blue). The P-normal stars spectra have been offset by −0.2 in flux for display purposes.

Fig. 3: Spectra of additional P-rich stars in our sample.
figure 3

Observed H-band spectra (in black) of additional (10, aj) P-rich stars in our sample around the two P I absorption lines at 1.57115 and 1.6482.9 μm. A gap in between wavelengths has been introduced to highlight the wavelength discontinuity. The best model spectra (in red) are shown together with model spectra without the P lines (in blue).

Fig. 4: Chemical abundance pattern observed in P-rich stars.
figure 4

Red and black symbols correspond to the median chemical abundances of the P-rich and P-normal (twin) stars, respectively. Error bars show the star-to-star abundance rms scatter. Note that only stars without upper limits are considered in the computation of the median values. The P-rich stars show clear enhancements of O, Mg, Al, Si, P and Ce compared to their normal (twin) counterparts.

Regarding the statistics, our sample represents ~0.8% of the stars if we consider their number in the APOGEE data release relatively to all giants with similar temperatures and metallicities. We stress that this may represent a lower limit because of our detection methodology (see Methods: Searching for P-rich stars) and because this new stellar kind is potentially part of a larger family of Si- or Al-rich stars15,16. Whereas their relative chemical inhomogeneity clearly demonstrate that P-rich stars are not all born from the same gas cloud, one could wonder if these stars comes from a specific population. The orbital analysis links the P-rich stars with the Galactic inner halo (see Methods: Orbital analysis), thus excluding an extra-Galactic origin. A globular cluster (GC) origin can also be easily ruled out as GC stars systematically show Mg and O depletion along with Al and Si enhancement; conversely to the chemical abundance pattern of the P-rich stars.

The possible progenitors of the P-rich stars

So, where this peculiar chemical pattern comes from? In principle, there could be several possibilities to explain the extremely peculiar chemical pattern of P-rich stars: (i) They could have accreted the material from an invisible companion. The most famous binary systems at such low metallicities are the so-called CH stars17; stars that have accreted large amounts of carbon from a now extinct asymptotic giant branch (AGB) star. But despite the metallicity and luminosity similarities with the CH stars, all our P-rich stars with observations spanning larger than a year (with the exception of only one star) show radial velocity variations no higher than the instrument precision (500 m/s) (Supplementary Table 1), advocating against the binary hypothesis; (ii) They could be the result of a merging process with a companion where no radial velocity variations are expected. However, given that a merging event with advanced nucleosynthesis - like the one displayed by the P-rich stars - is likely to lead to a rather massive object, we argue that such a merged-star would be either much brighter or extinct by now; (iii) They could be post-asymptotic giant branch18 (post-AGB) stars. This possibility resides in the idea that part of the material that has been present in the stellar gas has condensed into dust such that some elements appear now depleted while the non-condensed elements seem enhanced in comparison. This phenomenon has not only been observed in post-AGBs but also in their descendants, the planetary nebulae19, where dust is usually distributed in a circumstellar disk. No P-rich star, however, is as luminous as post-AGBs nor does the infrared photometry show any excess that would betray the presence of a circumstellar disk (Fig. 5; see also Methods: SEDs of P-rich stars). Also, Si, Al, Ni and Ca are refractory elements along with Fe and, in the gas-to-dust condensation scenario, they should all be depleted in a similar way; something that is clearly not observed in the P-rich stars. Therefore, the only left possibility is that P-rich stars were born from gas whose composition has been previously polluted by a progenitor with a quite specific and peculiar nucleosynthesis. However, we believe this peculiar source to be relatively nearby (i.e., a low dilution factor) to allow to supersede the already high initial chemical content of the interstellar medium at [Fe/H] ~−1.0.

Fig. 5: Spectral energy distributions (SEDs) of the P-rich stars.
figure 5

The SEDs (broad band photometry from 2500 to 250,000 Å in red) for 12 P-rich sample (al) stars are shown in comparison with the synthesized fluxes (in black) with the derived stellar parameters and chemical abundances of each star. Error bars show the photometric measurement errors such as provided by VOSA.

According to chemical evolution models, there are two main stellar types that are responsible for phosphorus production in the Galaxy: low-mass (1–3 M) AGB stars20 and massive stars (10–300 M)21,22,23 that end their life as core-collapse supernovae. In the first type -the low-mass AGBs- 31P is produced after neutron-capture on 30Si. In such stars, large enhancements of C and heavy neutron-rich (s-process) elements like Ce are also theoretically predicted by the stellar nucleosynthesis models (Fig. 6; see also Methods: Comparison with nucleosynthesis predictions). Actually, such chemical pattern is well known to match and explain the existence of the above-mentioned CH-stars. Although phosphorus has never been measured in CH-stars, the chemical pattern of the P-rich stars does not resemble the CH-stars one; nor their known radial velocity variations. Thus, these arguments allow us to rule out the low-mass AGB progenitor. In contrast, the subsolar metallicity combined with the inner halo orbital motion indicate that P-rich stars were formed early in the Galaxy; so that only short time events (e.g., ~10–100 Myr) could have generated their peculiar chemical abundance pattern. Consequently, the most natural progenitor candidates would be massive stars. In this stellar type, 31P is, in principle, expected to be produced by a complex network of nuclear reactions during the oxygen-burning phase, although the so-called odd-even effect6 systematically under-produce P compared to their neighboring elements Si and S (Fig. 6; see also Methods: Comparison with nucleosynthesis predictions). In an attempt to explain the solar phosphorus values, some previous studies have questioned and empirically modified the nuclear reaction rates assumed in the massive stars models5, in order to artificially increase the P yields in the Galactic chemical evolution models. For example, the uncertainty on the 30P(p,γ)31S reaction24 may plague the final yields of phosphorus. Nevertheless, the observations of a supernova remnant25 seem to confirm that P production in massive stars is consistent with the theoretical model yields, thus suggesting that the assumed nuclear reactions rates are reasonably accurate. Moreover, the fact that we observe at the same metallicity both P-rich and P-normal stars (Fig. 1) proves that inaccurate nuclear rates cannot be blamed alone as it would imply a systematic offset in the P yields but not a population split. Some alternative effects may then be considered to boost the production of P (and other odd elements) in massive stars.

Fig. 6: P-rich stars versus nucleosynthesis predictions.
figure 6

Median chemical abundance pattern of the P-rich stars (black squares) against the several model prediction patterns (colored lines), where [X/Fe]=log10(n(X)/n(Fe))-log10(n(X)/n(Fe)). Error bars show the star-to-star abundance rms scatter. a The low-mass AGB subpanel shows the yields20 for a metallicity of Z = 0.004 (Fe/H] ~−0.7) and various initial masses [1.0–3.0]M in a rainbow fashion (steps of 0.5 M), the redder being the lower masses. b In the core collapse supernova (SNII) subpanel, we show standard models (i.e. without any specific effect like rotation or O-C mergers) where the mass range is [13–40]M and metallicity such that Z = 0.001 ([Fe/H] ~−1.3)22. In the same subpanel, the pair-instability supernovae (PISN) yields62 are represented by dashed lines for masses of 180 and 200 M. c The initial masses of the intermediate-mass AGB predictions20 (intM-AGB) range from 3.5 to 6 M with Z = 0.004 (or [Fe/H]~−0.7). d The SN Type Ia (SNIa) yields63 cover all values in central densities (1.37 × 109–2.12 × 109 g cm−3) and deflagration speeds (1.5%–5% of sound speed) provided by the authors. e Theoretical predictions for super-AGB stars64 (S-AGB) at two metallicities (Z = 0.001, 0.0001 or [Fe/H] ~−1.3, −2.3; continuous and dotted lines, respectively) and three initial masses (6.5, 7.5 and 8.0 M) are displayed. f Finally, we display the only solar metallicity (Z = 0.014 or [Fe/H] ~0.0) novae yields available in the literature65 with CO core WDs (dashed lines) and ONe WDs (continuous lines) with the same mass range of [0.85–1.15]M.

The inclusion of rotation in the massive stars models26,27 represents a very interesting effect. Indeed, the difference between models with and without rotation (Fig. 7) highlights some overproduction of P. The N enhancement in the P-rich stars would also be a signature of additional mixing due to the rotation effect, but it is not clear whether this enhancement is genuinely from the progenitor or if it is due to internal mixing of the P-rich giant star itself. The predicted production of P, however, is relatively modest (in comparison to the measured abundance in the P-rich stars) and – depending on the model – it does not always overcome the odd-even effect. In addition, although all massive stars models with rotation do not always provide similar yields, they systematically overproduce C, Na and S, which are not enriched in the P-rich stars (Figs. 4, 7).

Fig. 7: Predictions of overabundance factors for massive star models against the abundance pattern of the P-rich star 2M13535604 + 4437076.
figure 7

Error bars show measurement uncertainties such as displayed in Supplementary Table 3. a Z = 0.001, 15, 20, 25 M models (respectively dotted red, long-dashed blue and solid black lines) from ref. 26 with rotation. b Z = 0.001, 15, 20, 25 M models (respectively dotted red, long-dashed blue and solid black lines) from ref. 27 with rotation. c Z = 0.001 15, 20, 25 M models (respectively dotted red, long dashed blue and solid black lines) from ref. 28 with O–C shell mergers. A rough dilution factor of 40% has been applied to all model yields.

Another possible effect for the production of odd elements in massive stars involves advanced nucleosynthesis in convective-reactive regions and, in particular, in O–C shell mergers28. Although simulation of such nucleosynthesis requires expensive hydrodynamical computations, some models28 include a prescription of such effect and provide P production factors for various masses (Fig. 7, bottom panel). Depending on the amount of C ingested in the O-shell, P can be abundantly produced under these conditions together with Al, Si, Mg and O; well in line with the P-rich star chemical pattern observed. The O-C shell mergers mechanism also boosts up the production of other odd elements like K and Sc28. However, no P-rich star shows any significant K enhancement (Fig. 4). Also, no Sc enhancement is detected in the only P-rich star (2M13535604+4437076; the brightest P-rich sample star) for which an optical spectrum is available (Fig. 8; see also Methods: optical spectrum of a P-rich star). However, all models produce large amounts of C and Na as in models with rotation, which again contradicts the observations.

Fig. 8: Chemical abundance pattern of the P-rich star 2M13535604 + 4437076.
figure 8

Blue triangles and red squares are the abundances values obtained from the optical and near-IR spectra, respectively, where the arrows indicate upper limits. Error bars show the measurement uncertainties such as shown in Supplementary Table 3. The solid black line shows the solar r-process pattern scaled to match the Ce abundance from ref. 29, while the long-dashed line shows an s-process theoretical pattern for a 1.5 M star at [Fe/H] = −1.0 diluted by 50% to match the Ce abundance from ref. 30 (a model as close as possible to the P-rich star chemical pattern, as found in literature) and the dotted line illustrate the weak s-process such as obtained by a model of a 20 M star with Z = 0.001 without dilution from ref. 27.

The heavy element abundance pattern of a P-rich star

Actually, further analysis of the 2M13535604+4437076 optical spectrum provides additional hints, especially when considering the neutron-capture elements. In Fig. 8, we display the full chemical abundance pattern (both from the optical and the H-band spectra) of the P-rich star 2M13535604+4437076, which is overplotted with the solar-scaled r-process29 pattern and theoretically predicted s-process patterns27,30 for a comparison with the heavy neutron-capture elements observed in P-rich stars. Assuming that this star is representative of all the other P-rich stars, the enhancement of the first-peak elements (namely Rb, Sr, Y, Zr) and the second-peak ones (Ba, La, Ce, Nd) together with the low Eu value seem to indicate that the nucleosynthesis in the P-rich stars is neither compatible with high-neutron density processes such as the solar-scaled r-process nor it is compatible with the weak s-process general pattern27,31. The absence of Cu and Zn enhancement further disfavors the occurrence of the weak s-process nucleosynthesis. In contrast, the values of [Rb/Fe] and [Sr/Fe] are very similar, usually indicating a relatively high neutron density. But even more intriguing is the really high overabundance of Ba compared to any other neutron-capture element (see Methods: optical spectrum of a P-rich star). The s-process neither the r-process are able to predict such a large Ba enhancement ([Ba/La] = +0.7) compared to the other second-peak elements (La or Ce), and this observation (if confirmed as an intrinsic property of these peculiar stars) could help to distinguish the P-rich stars progenitors (or a still unknown nucleosynthesis process). In any case, while the lack of a clear r-process pattern could rule out core-collapse supernovae32, other effects such as rotation may play a role and alleviate this apparent heavy element inconsistency. Although the predictions of the massive stars models do not agree with each other (Fig. 7), some models that include rotation26 allow strong overproduction of the heaviest elements including Ce in the pre-supernovae stages by the combination of increased neutrons and low metallicity. Nevertheless, the same authors warned about the variable impact of explosive nucleosynthesis on the pre-explosion yields. Explosive nucleosynthesis is expected to favor the production of elements beyond Si and up to the heavy elements first peak32. During the explosion, Si production and the r-process nucleosynthesis are triggered; the latter favoring the production of more neutron-capture elements. However, the P-rich stars do seem to not show any Ca, Ti or Fe-peak elements (Co, Ni, Cu or Zn) enhancement that is also expected by explosive nucleosynthesis. Therefore, if the P-rich stars progenitor was a massive star, the explosion yields have been reduced such as it is for the most massive models with strong fallback (e.g., the 25M model of ref. 31 in Fig. 7).

Another hypothesis to account for the production of the heavy elements beyond the Fe-peak, considers the nucleosynthesis in compact objects, and in particular neutron stars mergers33. In theory, the dynamical ejecta in such objects are extremely rich in neutrons, thus favoring the production of the heaviest nuclei; i.e., with A>130 (Ba, La, Ce, Nd) as it is seen in the P-rich stars. Similarly, models of magnetorotationally driven supernovae34 are also able to produce large amounts of second and third peak r-process elements. However, the low Eu abundance—a typical heavy r-process element—measured in the P-rich star 2M13535604+4437076, cast serious doubts on the possible occurrence of a neutron star merger event or a magnetorotationally driven supernova.

More exotic P producers such as super-AGB stars and Novae could be invoked to explain the existence of P-rich stars. However, they are actually discarded because of clear mismatches between the model predictions and the abundances of P-rich stars, among other caveats (see Methods: Exotic nucleosynthesis).

In summary, although there are some promising scenarios, none of the current theoretical predictions for standard stellar nucleosynthesis can consistently reproduce all the chemical abundances in P-rich stars. Hence, the discovery of P-rich stars demands a broader exploration of stellar nucleosynthesis networks within specific conditions such as rotation or convective-reactive events.


Still, until the true nature of the P-rich stars polluters is revealed, we can speculate that they could have appreciably contributed to the Galactic chemical evolution (and de facto to the Solar System and Earth).

The existence of chemically abnormal stars such as the P-rich stars at metallicities ~−1.0 provides interesting hints in the Galactic chemical evolution framework. Chemical inhomogeneities in heavy elements have been observed at metallicities lower than [Fe/H]<−2.0. This fact has been used35,36,37,38 to infer the progenitor/s of the heavy elements and to argue (via chemical evolution modeling) that neutron star mergers, magnetorotationally driven supernovae or rotating massive stars would be adequate candidates. Given the lack of any binary evidence, the existence of P-rich stars can be considered as another inhomogeneity signature (Fig. 9), although of a distinct type from the one cited above given their relatively high metallicity ([Fe/H]~−1.0). Interestingly, inhomogeneities at such high metallicities have never been observed until now, suggesting that either the mixing scale of the P-rich progenitors is not large in order to overcome the already enriched interstellar medium or that we only observe the most enhanced P-rich stars, the remaining being too diluted to be chemically distinguishable. In addition, to explain that only a certain fraction of stars at [Fe/H]~−1 are P-rich, a specific distribution of progenitor types could also be invoked. Indeed, the mean Galactic chemical evolution of several elements – including neutron-capture elements – has been satisfactorily reproduced by adopting an empirical distribution of rotation in massive stars7. Similarly, the inclusion of a crude constant rate of only 10% O-C shell mergers in a simple Galactic chemical evolution model has permitted to reproduce the solar P abundance28. This demonstrates that even a minority population such as the P-rich stars population could appreciably contribute to the global chemical enrichment. It is to be noted here that, along with a too low P solar abundance, some chemical evolution models7 coincidentally underpredict Mg, Al and some Si isotopes in the Early Solar System.

Fig. 9: Elemental abundances as a function of metallicity.
figure 9

a Oxygen, b magnesium, c aluminum, d silicon, e calcium, f nickel. The red stars and black diamonds show the P-rich and P-normal stars, respectively, while the black crosses correspond to the optical literature values for field dwarf stars48. Error bars indicate our measurement uncertainties such as displayed in Supplementary Tables 3 and 4.

By combining the arguments above on the chemical evolution and the chemical patterns by stellar nucleosynthesis, we could tentatively suggest that a combination of specific effects (i.e., rotation and/or advanced nucleosynthesis in convective-reactive regions) in massive stars may represent a promising way to explain our discovery of the chemically peculiar P-rich stars. However, before validating such scenario, there still remain strong contradictions between the nucleosynthesis models available and the chemical abundance pattern observed in P-rich stars. In our view, the recurrent discrepancy between the observations and all the models reside in finding a source or nucleosynthesis processes that allow strong P production but also O, Mg, Al, Si and Ce but with none or negligible C and Na enhancement.


Searching for P-rich stars

The spectra used in the present work were obtained from the SDSS-IV/APOGEE survey DR1439. The APOGEE survey is a large spectroscopic survey taking high-resolution (R~22,500) spectra of F-, G-, and K-type stars in the H-band using the Apache Point Observatory telescope. All the data have been reduced in a homogeneous manner40 and publicly available. In principle, the data are also analyzed via an automatic tool41, thus providing effective temperatures (Teff), surface gravities (logg) and elemental abundances for each stellar spectrum. However, given that this pipeline is based on a pre-computed synthetic grid of model spectra, elemental abundances beyond the grid ranges such as observed in the P-rich stars are not valid. Therefore, we have developed a new algorithm to search for specific enhanced absorption/emission features in the APOGEE spectra database. This code has been previously validated against the Ce lines of the APOGEE spectra. The algorithm extracts the peaks in the wavelengths of interest (here the strongest and less blended P I lines at 15711.5 and 16482.9 Å), categorizing and filtering each detection by means of different thresholds defined based on the local values of the signal. For each P line of interest, a window for local analysis is created. First, the code looks for peaks of absorption (or emission) close to the wavelength of each P line, establishing a threshold calculated from the signal continuum and the variance, so that the algorithm is sensitive to spectra with noise or very ripple. Secondly, the area of the peak is calculated, with the aim of filtering the P lines with little width and/or height. The detection of a P line is considered positive when both steps are met. A visual inspection of the candidates (~50) was finally made, ending with a final sample of 15 P-detected stars. It is to be noted here that our detection method is rather restrictive and there are probably much more P-enhanced stars to be found. For the same reason we cannot presently know whether the relatively narrow metallicity range of the P-rich stars is real or as a result of a selection bias of our detection algorithm.

Chemical abundance analysis

Once the P-detected stars were identified, the effective temperatures were derived using a J-K-Teff relation42, and surface gravities (logg) were determined by isochrones43. With the Teff and logg values fixed, we derive (when possible) the abundances of C, N, O, Na, Mg, Al, Si, P, S, K, Ca, Ti V, Cr, Mn, Co, Ni and Ce as well as the metallicity, macroturbulence, and v sini for each P-detected star. For this, we used the Brussels Automatic Code for Characterizing High accUracy Spectra (BACCHUS)44 with the atomic/molecular APOGEE linelists45 as input. In short, BACCHUS basically uses MARCS model atmospheres46 and the spectral synthesis code Turbospectrum47 to find the best model (synthetic) spectra on a line-by-line basis. The oscillator strengths (loggf) for the two main P I lines at 1.57115 and 1.64829 μm are −0.404 and −0.273, respectively. They were checked to reproduce satisfactorily the P I spectral lines in the Sun with an assumed solar abundance of 5.363. The illustration of the best fits around the P lines in the P-rich stars is shown in Figs. 2 and 3. We note that the 1.64829 μm line is blended with a CO molecular line. Fortunately, other CO lines are present nearby at ~1.6493 μm, whose good fit guaranties that the blend is properly taken into account and that the P abundance is secure. Moreover, we could also derive P abundance in a few of the best spectra of P-normal stars (Fig. 1) which lead to a value of [P/Fe]~+0.6 in agreement with literature studies13. We also must emphasize that the N abundances are measured via the CN molecular lines and thus are strongly dependent on the O and C abundances because of molecular equilibrium. Consequently, the N abundances displayed in Supplementary Tables 3 and 4 with only upper limits on O may be overestimated. The systematic errors on abundances were derived by assuming the effective temperatures and surface gravities as provided by the APOGEE automatic pipeline41. The good agreement between the photometric and spectroscopic temperatures as shown in Supplementary Tables 1 and 2 suggests that our parameters determination is fairly robust. Random errors on abundances were evaluated by the line-by-line abundance dispersion. We note that nearly all P-rich stars APOGEE spectra have high signal-to-noise (S/N) ratios (>70) and the majority of stars more than 100 (see Supplementary Table 1). In parallel, a set of control (twin) stars with similar Teff, logg and metallicities as the P-rich stars and with high S/N ratios (> 150) were selected from the APOGEE DR14 catalog40 (the so-called P-normal stars). We rigorously applied the same methodology for the stellar parameters and chemical abundances determination to the P-normal (twin) stars. The stellar parameters and abundances of the P-rich and P-normal stars and all related errors are shown in Supplementary Tables 1, 3 and 2, 4, respectively. In Fig. 9, we compare the abundances obtained for both the P-rich and P-normal samples against literature48. The chemical abundance pattern of the P-normal stars is similar to field (Galactic thick disk and halo) stars, as expected. The agreement between the P-normal stars and literature is overall good although some slight systematics may appear for Si, Ni or Al. While those systematics can easily be attributed to various assumptions in both our analysis and in the literature (e.g. temperature scales, linelists or 3D and NLTE effects), they remain small in comparison to the difference between the P-normal stars and the P-rich ones, and thus not affecting our conclusions.

Optical spectrum of a P-rich star

In parallel to the APOGEE spectrum, we have obtained high-resolution (R~67,000) optical spectra for the brightest P-rich star in our sample (2M13535604+4437076). The spectra were obtained with the FIES spectrograph49 at the 2.5m Nordic Optical Telescope (La Palma, Spain) in January and February 2020 under the Spanish service time. Four single spectra were acquired with a total exposure time of 4 hours, covering the 4200–9000 Å spectral range. The data reduction followed the standard FIES pipeline and the S/N achieved in the final summed spectrum is 30 at 4500 Å and 60 at 9000 Å. The chemical abundance analysis was done consistently with the APOGEE H-band spectral analysis; i.e., we rigorously adopted the same stellar parameters, model atmosphere and program codes. The atomic/molecular linelists used for the optical part are those used in the Gaia-ESO survey50. The final abundances are shown in Fig. 8 together with the IR-derived abundances. Although the abundances from the optical spectra suffers from larger uncertainties due to the lower S/N ratio, there is a good agreement between the abundances obtained from the H-band spectrum and the optical one, with the exception of Al and K. The latter discrepancies can be explained by the strong non-local thermodynamic equilibrium (NLTE) effects that, respectively, affect the Al lines in the H-band40 and the K lines in the optical51. Thus, the Al optical abundance is certainly the most accurate, while for K it is the near-infrared one. We also note that for O, two values where available from the O I forbidden transition line at 6300 Å and from the O triplet at ~7777 Å. The latter indicator shows ~0.1 dex less oxygen than the former one, which we assume is due to NLTE effects. Therefore, we adopted the O abundance from the 6300 Å transition.

The high overabundance of Ba compared to any other neutron-capture element deserves some attention here.  The high Ba content that we find is not likely a saturation effect, as this would tend to underestimate the Ba abundance rather than overestimate it. However, NLTE effects are known to affect the Ba abundances for the optical lines we have been using (4554, 5853, 6141, and 6496 Å). We can estimate that theoretical NLTE corrections52,53 could be only up to −0.3 for the stellar parameters of the P-rich star 2M13535604+4437076. Moreover, our measurement method consists in looking only at the line wings and not the equivalent widths; the line core is much more sensitive to both saturation and NLTE. Thus, our Ba measurement is quite NLTE free and we conclude that the large Ba overabundance such that [Ba/La] = +0.7 is quite robust. In any case, optical follow-up observations of more P-rich stars would be useful to prove/disprove if the high Ba is an intrinsic property of the P-rich stars.

Finally, we have attempted to measure Li in this star but only an upper limit of logε(Li)=1.2 dex could be obtained. Unfortunately, this cannot represent a constraining limit regarding the initial Li of the progenitor because the observed star, according to its stellar parameters, is very likely a red clump star, where any pristine Li has been altered in situ and even possibly fully destroyed.

SEDs of P-rich stars

We have collected the photometry - available via the Virtual Observatory Sed Analyzer (VOSA) online tool54 - for each P-rich star and draw their respective spectral energy distribution (SED) in Fig. 5. Reddening corrections were applied to all filters assuming reddening values provided by Bayler-Jones et al. from Bayesian inference on Gaia data55. The synthetic spectra displayed in this figure have been tailored with the final stellar parameters and abundances using the same model atmosphere code MARCS46 and the radiative transfer code Turbospectrum47 as for the chemical abundance analysis (see above). The luminosities reported in Supplementary Tables 1 and 2 were derived by combining distances (from the Gaia mission56 for distances less than 2 kpc and from Bayesian inference55) and bolometric corrections57. The Gaia parallaxes were corrected by - 0.029 mas as recommended by the Gaia team58. Concerning the radial velocities shown in Supplementary Tables 1 and 2, the values were simply taken from the published APOGEE DR14 catalog40.

Orbital analysis

Orbital properties of the sample stars have been extracted from the the astroNN catalog of abundances and distances for APOGEE DR16 stars. Properties of the orbits in the Milky Way such as eccentricities, peri/apocenter radii, maximal disk height z, orbital actions, frequencies and angles (and their uncertainties) for all stars are computed using the fast method59 assuming the MWPotential2014 gravitational potential60. The range of values for the P-rich stars is Zmax=[3,15]kpc and e=[0.6,1.0], all corresponding to regular inner halo orbits15,61. Moreover, it has been established that in the metallicity range [−1.5,−0.5] one can distinguish any stream (including the Gaia-Enceladus stream) from the in situ stars based on chemistry, in particular alpha elements such as Mg and Ca. While Mg is not reliable in the P-rich stars because it has been clearly spoiled by an unidentified progenitor, the Ca seems to indicate that the P-rich stars belong to the original Galactic population and has not been accreted from an external population.

Comparison with nucleosynthesis predictions

In Fig. 6, we compare the chemical abundance pattern observed in P-rich stars with the nucleosynthetic theoretical predictions (collected from up to date literature) for low- and intermediate-mass AGBs20, supernovae22, pair-instability supernovae62, type Ia supernovae63, super-AGBs64 and novae65. The published model yields were not computed with the exact same initial composition (metals) as it was at the epoch of the formation of the P-rich stars and usually assume a simple solar scaled pattern. Consequently, in order to mimic the real initial abundances of P-rich stars we added up the observed abundance pattern of the P-normal (twin) stars to the theoretical yields. We also stress that we use the pure theoretical yields in the comparison and we have neglected here any dilution (e.g., as it would be expected in a binary/merger system) that could have occurred since the formation of the P-rich star. However, this dilution factor would only tend to shrink down all the chemical abundance pattern together and it would thus not affect our discussion, mainly based on the relative elemental abundances.

For each progenitor type, we also display several models that reflect the variety of parameters that can influence the final yields. In particular, we show in the case of AGBs and supernovae (SNe) how the initial mass affects the final abundances. In the case of super-AGBs, we show also that the metallicity has a strong impact. For novae, on the other hand, we show that the white dwarf type (CO or ONe) has a strong effect. Naturally, other model prescriptions can influence the final theoretical yields such as the mass loss treatment (e.g., AGBs/super-AGBs), rotation or the energy of the explosion in the case of SNe. The variations in the model prescriptions lead to an even broader spectrum of nucleosynthesis models and stellar evolution codes in the literature. However, a detailed review of all of them is out of the scope of this paper. Instead, we base our main argumentation on the fundamental nuclear reactions nearly independent of the model prescriptions within each stellar type (e.g., the Na-O correlation for AGBs, the α-element production and odd-even effects in massive stars or the C and N production in super-AGBs and novae) (see main text and Methods: Exotic nucleosynthesis).

Nevertheless, we must note here that all the stellar abundances are bound to the quality of the nuclear reaction rates network used in the nucleosynthesis models. In parallel, it is very important that the analysis of the observations are equally accurate. Although we acknowledge that 3D and NLTE effects66 need to be accounted for in order to certify that the analysis of the spectra are accurate, our differential approach against P-normal stars demonstrates the peculiarity of the P-rich stars pattern.

Exotic nucleosynthesis

There are two types of rare objects that can be found in literature and that are also able to produce a large amount of P: super-AGB64,67 stars and novae68. Super-AGB (~6–10 M) stars theoretical models predict large amounts of P, O, Mg, Si and Al, although strongly depending on the model parameters (Fig. 6). Interestingly, this time 31P is enhanced by α-particle captures on 27Al but the largest amounts only occur at very low metallicities ([Fe/H]~−2.3); i.e., much lower than in P-rich stars ([Fe/H] ~ −1.0). No super-AGB stars have yet been unambiguously identified though, which may still leave room for some neglected/underestimated effect in the actual models predictions. The enhanced O together with a lack of Na observed in the P-rich stars is, however, a quite crippling argument against a contribution from any AGB star, super or intermediate-mass type. Novae represent interesting other alternatives where their explosion events lead to intense H-burning reactions and where P is produced this time by capture of protons on Si. Very large amounts of P, O, Mg, Si and Al are predicted by the existing models, although the exact yields (again) strongly depend on the white dwarf type and on the thermonuclear conditions24,65 (Fig. 6). The idea that novae could significantly pollute their surrounding environment and the chemical composition of the subsequent generations of stars has been recently revived in order to explain the content of 7Li in stars of the Galactic disk69. Furthermore, it has long been suspected that 15N in the Solar System has also originated in novae70. Actually, measurements of CNO isotopic ratios in pre-solar grains71,72 have represented the best clue to testify that novae products have reached our Solar System. We could constrain 12C/13C, 14N/15N and 16O/17O in the coolest P-rich star (respectively 3, >2, >5), but it is theoretically expected that they had brought to the surface their own C, N and O products (during the so-called first dredge-up) and had also probably undergone extra-mixing processes along the red giant branch. Such mixing processes imply that the original C, N and O isotopic ratios have been altered towards the standard values of a 1 M metal-poor giant73 and, consequently, any pristine C, N or O isotopic signature of a previous nova has been diluted. However, the main issue regarding the nova scenario resides in our observation of enhanced Ce in the P-rich stars. All novae models always consider that explosive H-burning nucleosynthesis do not affect the elements heavier than 40Ca74, and none of the heavy elements such as Ce is expected to be enhanced. Other caveat to the Nova scenario is that the first nova events should occur quite late in the history of the Galaxy. This is because a white dwarf needs to be formed beforehand. In contrast, the P-rich stars display quite low metallicities, suggesting that they are rather old stars. Finally, the lack of large enhancements of C in the P-rich stars also contradicts all present novae and super-AGBs models.

Finally, although they are not expected to produce P, (Galactic) chemical evolution models usually take into account the theoretical yields of intermediate-mass (3–6 M) AGB stars20,67 and thermonuclear supernovae (aka type Ia supernovae). However, an analysis of their typical nucleosynthetic pattern allow us to confirm that they are most probably not related to the P-rich stars’ origin (Fig. 6). Indeed, intermediate-mass AGBs are characterized by the Mg-Al-Si nuclear reaction chain, which destroys Mg. Similarly, no type Ia supernovae are theoretically expected to produce large amounts of Fe-peak elements such as Fe, Mn or Cr, but no O or Mg, which abounds in our P-rich stars.