1 Introduction

The base 6-parameter \(\Lambda \)–Cold–Dark-Matter (\(\Lambda \)CDM) model is the most popular one to interpret the accelerating expansion of universe. This model is favored by most “observational probes”, though the fine-tune problem and the coincidence problem in theory exist. However, some tension was found recently between the cosmic observations when one fitted observational data to this model. For example, the tension is found for estimating the values of \(H_{0}\): a lower value of \(H_{0}=67.3\pm 1.0\) is provided by Planck-CMB experiment with an indirect estimate on \(H_{0}\) [1], but the higher value of \(H_{0}=74.3\pm 2.1\) is obtained by SST direct measurements of \(H_{0}\) [2]; this tension also exists between the Planck-CMB experiment and the rich cluster counts, as they provide the inconsistent value of \(\sigma _{8}\) [1, 3].

The studies on these tensions are important, since any evidence of a tension may be useful in the search for new physics. One possible interpretation to above tension is that the base 6-parameter \(\Lambda \)CDM model is incorrect or should be extended. Reference [1] shows that introducing \(\sum m_{\nu }\) or introducing \(N_\mathrm{eff}\) solely in the \(\Lambda \)CDM model cannot resolve the above tensions, but the tensions could be solved in the \(\Lambda \)CDM with including both \(\sum m_{\nu }\) and \(N_\mathrm{eff}\) or with including the massive sterile neutrinos \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}\). Here \(\sum m_{\nu }\) denotes the total mass of three species of degenerate massive active neutrinos, and \(N_\mathrm{eff}\) denotes the effective number of relativistic degrees of freedom, which relates to the neutrinos and the extra massless species. Combined analysis of cosmic data in other references also indicates the existence of the massive neutrinos, for example, joint analysis from CMB and BAO (baryon acoustic oscillation) [4, 5], from solar and atmospheric experiments [6,7,8], or from the reactor neutrino oscillation anomalies [9, 10], etc.

Investigating other scenarios to solve the above tensions and restricting the mass of neutrinos in different scenarios is significant. Reference [11] shows that the possible discovery of a sterile neutrino with mass \( m_{\nu ,\mathrm{sterile}}^\mathrm{eff}\approx 1.5\, \mathrm{eV}\), motivated by various anomalies in neutrino oscillation experiments, would favor cosmology based on f(R) gravity rather than the standard \(\Lambda \)CDM. In addition, it is well known that plenty of functions f(R) of the Ricci scalar R [12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28] were presented to modify the Einstein gravity theory, in order to solve puzzles in general relativity. But several forms of f(R) are then found to be nonphysical, since they cannot describe the expansion of universe in matter-dominated time [29, 30]. So, studies on observationally viable f(R) theories are necessary. One of the viable f(R) theories has been studied in Refs. [31, 32], where the f(R) theory can realize the most popular \(\Lambda \)CDM universe at background-dynamics level, while the effects of large scale structure with the cosmological perturbation theory in this f(R) model are different from that in the \(\Lambda \)CDM. In this paper, we investigate the behaviors of massive neutrinos in observationally viable f(R) theories with producing the \(\Lambda \)CDM background expansion history.

2 Viable f(R) gravity theory producing \(\Lambda \)CDM background expansion

The action of f(R) modified gravity theory is written as

$$\begin{aligned} I=\int \mathrm{d}^{4}x\sqrt{-g}\left[ \frac{1}{16\pi G}f(R)+\mathcal {L}_{u}\right] . \end{aligned}$$
(1)

\(\mathcal {L}_{u}\) is the Lagrangian density of universal matter including the radiation and the pressureless matter (baryon matter plus cold dark matter). Using the variation principle, one gets

$$\begin{aligned} f_{R}R_{\mu \nu }-\frac{1}{2}f(R)g_{\mu \nu }+(g_{\mu \nu }\Box -\nabla _{\mu }\nabla _{\nu })f_{R}=8\pi G T_{\mu \nu }.\nonumber \\ \end{aligned}$$
(2)

\(f_{R}=\frac{\mathrm{d} f(R)}{\mathrm{d} R}\), \(R_{\mu \nu }\) and \(T_{\mu \nu }\) denote the Ricci tensor and the energy-momentum tensor of universal matter, respectively. For a universe described by metric \(g_{\mu \nu }=\mathrm{diag} (-1, a(t)^{2}, a(t)^{2}, a(t)^{2})\), the dynamical evolutionary equations of universe in f(R) theory are

$$\begin{aligned}&3f_{R}H^{2}=\frac{f_{R}R-f}{2}-3Hf_{RR}\dot{R}+8\pi G(\rho _{m}+\rho _{r}),\end{aligned}$$
(3)
$$\begin{aligned}&2f_{R}\dot{H}=H\dot{f}_{R}-\ddot{f}_{R}-k^{2}\left[ \rho _{m}+\frac{4\rho _{r}}{3}\right] . \end{aligned}$$
(4)

As shown in Ref. [32], the viable f(R) theory which realizes the popular \(\Lambda \)CDM universe at background-dynamics level does not have an analytical expression of f(R) to describe a physical universe from the radiation-dominated epoch to the late-time acceleration, but it really has the analytical solutions of f(R) in different evolutionary epochs of the universe. Concretely, Ref. [32] gives the forms of f(R) in two cases: one describes the evolution of the \(\Lambda \)CDM background from the radiation-dominated epoch to the matter-dominated epoch, and the other one represents the evolution of the \(\Lambda \)CDM background from the matter-dominated era to the future expansion. In this paper we focus on studying the f(R) function producing a \(\Lambda \)CDM background expansion from the matter-dominated epoch to the late-time acceleration,Footnote 1 which has a form as follows [31, 32]:

$$\begin{aligned} f(R)= & {} R-2\Lambda -\varpi \left( \frac{\Lambda }{R-4\Lambda }\right) ^{p_{+}-1} \nonumber \\&\times _{2}F_{1}\left[ q_{+},p_{+}-1;r_{+};-\frac{\Lambda }{R-4\Lambda }\right] , \end{aligned}$$
(5)

where \(\varpi =\frac{3H_{0}^{2}\Omega _{\Lambda }D}{p_{+}-1}(\frac{\Omega _{m}}{\Omega _{\Lambda }})^{p_{+}}\), \(_{2}F_{1}[a,b;c;z]\) is the Gaussian hypergeometric function with \(q_{+}=\frac{1+\sqrt{73}}{12}\), \(r_{+}=1+\frac{\sqrt{73}}{6}\), and \(p_{+}=\frac{5+\sqrt{73}}{12}\). D is the model parameter in this f(R) modified gravity, which can relate to the current value \(f_{R0}\) and the current value of the Compton wavelength \(B_{0}\) by

$$\begin{aligned} f_{R0}=1+D\times _{2}F_{1}\left[ q_{+},p_{+};r_{+};-\frac{\Omega _{\Lambda }}{\Omega _{m}}\right] , \end{aligned}$$
(6)
$$\begin{aligned} B_{0}= & {} \frac{2Dp_{+}}{\Omega _{m}^{2}\left\{ 1+D_{2}F_{1}\left[ q_{+},p_{+};r_{+};-\frac{\Omega _{\Lambda }}{\Omega _{m}}\right] \right\} }\nonumber \\&\times \, \bigg \{\Omega _{\Lambda }\frac{q_{+}}{r_{+}}~ _{2}F_{1}\left[ q_{+}+1,p_{+}+1;r_{+}+1;-\frac{\Omega _{\Lambda }}{\Omega _{m}}\right] \nonumber \\&-\,\Omega _{m2}F_{1}\left[ q_{+},p_{+};r_{+};-\frac{\Omega _{\Lambda }}{\Omega _{m}}\right] \bigg \}, \end{aligned}$$
(7)

where the Compton wavelength is derived by \(B=\frac{f_{RR}}{f_{R}}\frac{\mathrm{d}R}{d\ln a}\frac{H}{\mathrm{d}H/d\ln a}= \frac{\partial f_{R}/\partial \ln a}{f_{R}}\frac{H}{\partial H/\partial \ln a}\).

Obviously, Eq. (5) can partly realize the background expansion as that of the \(\Lambda \)CDM universe, while the cosmological perturbation behaviors in this f(R) model are different from that in the \(\Lambda \)CDM model. Given that it is not natural by using two f(R) functions to mimic one total \(\Lambda \)CDM universe, in this paper we consider our universe including two stages: the early universe \(a<0.02\) (including the radiation-dominated epoch and the early stage of the matter-dominated era) is described by the \(\Lambda \)CDM, and the universe \(a\ge 0.02\) (including the deep matter-dominated epoch and the late-time acceleration) is depicted by the above viable f(R) model.

3 Cosmological perturbations in viable f(R) gravity theory producing \(\Lambda \)CDM background expansion

The line element with the perturbation reads

$$\begin{aligned} \mathrm{d}s^{2}=&a^{2}[-(1+2\psi Y^{(s)})\mathrm{d}\tau ^{2}+2BY_{i}^{(s)}\mathrm{d}\tau \mathrm{d}x^{i}\nonumber \\&+(1+2\phi Y^{(s)})\gamma _{ij}\mathrm{d}x^{i}\mathrm{d}x^{j}+\varepsilon Y_{ij}^{(s)}\mathrm{d}x^{i}\mathrm{d}x^{j}], \end{aligned}$$
(8)

where \(\gamma _{ij}\) is the three-dimensional spatial metric in the spherical coordinate

$$\begin{aligned}&[\gamma _{ij}]=\left( \begin{array}{l} \frac{1}{1-Kr^{2}}~~~~0~~~~~~~~0\\ ~~0~~~~~~~r^{2}~~~~~~~~0\\ ~~~~0~~~~~~~~0~~~~~~~~r^{2}\sin ^{2}\theta \end{array}\right) , \end{aligned}$$
(9)

\((\triangle +k^{2})Y^{(s)}=0\), \(Y_{j}^{(s)}\equiv -\frac{1}{k}Y_{|j}^{(s)}\) and \(Y_{ij}^{(s)}\equiv \frac{1}{k^{2}}Y_{|ij}^{((s)}+\frac{1}{3}\gamma _{ij}Y^{((s)}\) are the scalar harmonic functions. Considering the synchronous gauge, we have \(\psi = 0\), \(B = 0\), \(h_{L}=6\phi \) and \(\eta _{T}=-(\phi +\varepsilon /6)\), where \(\eta _{T}=\frac{\delta R^{(3)}}{-4k^{2}+12K}=\frac{6\delta K}{-4k^{2}+12K}\) denotes the conformal 3-space curvature perturbation. The perturbed modified Einstein equations in f(R) theory can be derived as follows [33]:

$$\begin{aligned} \left( f_{R}\mathcal {H}+\frac{1}{2}f_{R}^{'}\right) k\mathcal {Z}= & {} \frac{\kappa ^{2}}{2}a^{2}\delta \rho +f_{R}k^{2}\eta _{T}\beta _{2}\nonumber \\&-\frac{3}{2}\mathcal {H}\delta f_{R}^{'}-\frac{1}{2}\delta f_{R}k^{2}+\frac{3}{2}\mathcal {H}^{'}\delta f_{R},\nonumber \\ \end{aligned}$$
(10)
$$\begin{aligned} \frac{k^{2}}{3}f_{R}(\beta _{2}\sigma -\mathcal {Z})=\frac{\kappa }{2}a^{2}q+\frac{1}{2}k\delta f_{R}^{'}-\frac{1}{2}k\mathcal {H}\delta f_{R}, \end{aligned}$$
(11)
$$\begin{aligned} \sigma ^{'}+2\mathcal {H}\sigma +\frac{f_{R}^{'}}{f_{R}}\sigma =k\eta _{T}-\kappa ^{2}a^{2}\frac{p\Pi }{f_{R}k}-k\frac{\delta f_{R}}{f_{R}}, \end{aligned}$$
(12)
$$\begin{aligned} \mathcal {Z}^{'}+\left( \frac{1}{2}\frac{f_{R}^{'}}{f_{R}}+\mathcal {H}\right) \mathcal {Z}= & {} \left( -k\beta _{2}+\frac{k}{2}+\frac{3\mathcal {H}^{2}}{k}\right) \frac{\delta f_{R}}{f_{R}}\nonumber \\&-\frac{\kappa ^{2}a^{2}}{2kf_{R}}(\delta \rho +3\delta p)-\frac{3}{2}\frac{\delta f_{R}^{''}}{kf_{R}},\nonumber \\ \end{aligned}$$
(13)

where \(q=(\rho +p)v\), \(\beta _{2}=\frac{k^{2}-3K}{k^{2}}\), \(f_{R}=1+D a^{3p_{+}}\times _{2}F_{1}[q_{+},p_{+};r_{+};-a^{3}\frac{\Omega _{\Lambda }}{\Omega _{m}}]\), \(\mathcal {H} = a^{'}/a\) is the conformal Hubble parameter, and the superscript \('\) denotes the derivative with respect to conformal time. In addition, in the CAMB code, the curvature perturbations are characterized by \(\mathcal {Z}=\frac{h_{L}^{'}}{2k}\) and \(\sigma =\frac{(h_{L}+6\eta _{T})^{'}}{2k}\) with \(\eta _{T}^{'}=\frac{k}{3}(\sigma -\mathcal {Z})\). The evolutionary equation of the perturbed field \(\delta f_{R}\) reads

$$\begin{aligned}&\delta f_{R}^{''}+2\mathcal {H}\delta f_{R}^{'}+a^{2}\left( \frac{k^{2}}{a^{2}}+m^{2}_{f_{R}}\right) \delta f_{R}\nonumber \\&\quad =\frac{\kappa ^{2}a^{2}}{3}(\delta \rho -3\delta p)-kf_{R}^{'}\mathcal {Z}. \end{aligned}$$
(14)

The source term of the CMB temperature anisotropy is described by

$$\begin{aligned} S_{T}(\tau ,k)= & {} e^{-\varepsilon }(\alpha ^{''}+\eta _{T}^{'})\nonumber \\&+\,g\left( \triangle _{T0}+2\alpha ^{'}+\frac{v_{b}^{'}}{k}+\frac{\zeta }{12\sqrt{\beta _{2}}} +\frac{\zeta ^{''}}{4k^{2}\sqrt{\beta _{2}}}\right) \nonumber \\&+\, g^{'}\left( \alpha +\frac{v_{b}}{k}+\frac{\zeta ^{'}}{2k^{2}\sqrt{\beta _{2}}}\right) +\frac{1}{4}\frac{g^{''}\zeta }{k^{2}\sqrt{\beta _{2}}}\nonumber \\= & {} e^{-\varepsilon }\left( \frac{\sigma ^{''}}{k}+\frac{k\sigma }{3}-\frac{k\mathcal {Z}}{3}\right) \nonumber \\&+\,g\left( \triangle _{T0}+2\frac{\sigma ^{'}}{k}+\frac{v_{b}^{'}}{k} +\frac{\zeta }{12\sqrt{\beta _{2}}}+\frac{\zeta ^{''}}{4k^{2}\sqrt{\beta _{2}}}\right) \nonumber \\&+\, g^{'}\left( \frac{\sigma }{k}+\frac{v_{b}}{k}+\frac{\zeta ^{'}}{2k^{2}\sqrt{\beta _{2}}}\right) +\frac{1}{4}\frac{g^{''}\zeta }{k^{2}\sqrt{\beta _{2}}} \end{aligned}$$
(15)

where \(g=-\dot{\varepsilon }e^{-\varepsilon }=an_{e}\sigma _{T}e^{-\varepsilon }\) is the visibility function and \(\varepsilon \) is the optical depth. \(\zeta \) is given by \(\zeta =(\frac{3}{4}I_{2}+\frac{9}{2}E_{2})\), where \(I_{2}\), \(E_{2}\) indicate the quadrupole of the photon intensity and the E-like polarization, respectively.

Fig. 1
figure 1

The contours of model parameters in viable f(R) theory with massive neutrino by fitting the Planck TT, TE, EE\(+\)lowP and the low-redshift data: Planck lesning\(+\)RSD\(+\)BAO\(+\)JLA

4 Data fitting and results

4.1 Used data

In this section, we apply the cosmic data to constrain the above viable f(R) model. The used data are as follows.

  1. (1)

    The CMB temperature and polarization information released by Planck 2015 [1]: the high-l \(C_{l}^{TT}\) likelihood (PlikTT), the high-l \(C_{l}^{EE}\) likelihood (PlikEE), the high-l \(C_{l}^{TE}\) likelihood (PlikTE), the low-l data and the lensing data.

  2. (2)

    The 10 datapoints of the redshift space distortion (RSD): the RSD measurements from 6dFGS (\(f\sigma _{8}(z = 0.067)=0.42\pm 0.06\)) [34], 2dFGRS (\(f\sigma _{8}(z = 0.17)=0.51\pm 0.06\)) [35], WiggleZ (\(f\sigma _{8}(z = 0.22)=0.42 \pm 0.07, f\sigma _{8}(z = 0.41)=0.45 \pm 0.04, f\sigma _{8}(z = 0.60)=0.43 \pm 0.04, f\sigma _{8}(z = 0.78)=0.38 \pm 0.04\)) [36], SDSS LRG DR7 (\(f\sigma _{8}(z = 0.25)=0.39 \pm 0.05\), \(f\sigma _{8}(z = 0.37)=0.43 \pm 0.04\)) [37], BOSS CMASS DR11 (\(f\sigma _{8}(z = 0.57)=0.43 \pm 0.03\)) [38], and VIPERS (\(f\sigma _{8}(z = 0.80)=0.47 \pm 0.08\)) [39]. Here \(f=\frac{d\ln D}{d\ln a}\), D is the linear growth rate of matter fluctuations, \(\sigma _{8}\) is the RMS matter fluctuations in linear theory. RSD reflects the coherent motions of galaxies, so it provides information as regards the formation of large-scale structure [40,41,42].

  3. (3)

    The BAO data: the 6dFGS [43], the SDSS-MGS [44], the BOSSLOWZ BAO measurements of \(D_{V}=r_\mathrm{drag}\) [44] and the CMASS-DR11 anisotropic BAO measurements [44]. Since the WiggleZ volume partially overlaps that of the BOSSCMASS sample, we do not use the WiggleZ results in this paper. 6dFGS denotes the six-degree-Field Galaxy survey (6dFGS) at \(z_\mathrm{eff}=0.106\) [43], SDSS-MGS denotes the SDSS Main Galaxy Sample (MGS) at \(z_\mathrm{eff}=0.15\) [44], BOSSLOWZ denotes the Baryon Oscillation Spectroscopic Survey (BOSS) “LOWZ” at \(z_\mathrm{eff}=0.32\) [44], and CMASS-DR11 denotes the BOSS CMASS at \(z_\mathrm{eff}=0.57\) [44]. The recent analysis of the latter two BAO data use peculiar velocity field reconstructions to sharpen the BAO feature and reduce the errors on \(D_{V}=r_\mathrm{drag}\). The point labeled BOSS CMASS at \(z_\mathrm{eff}=0.57\) shows \(D_{V}=r_\mathrm{drag}\) from the analysis of [45], updating the BOSS-DR9 analysis.

  4. (4)

    The supernova Ia (SN Ia) data from SDSS-II/SNLS3 joint light-curve analysis (JLA) [46, 47]. The prior value of the Hubble constant \(H_{0}=100 h\) km s\(^{-1}\) Mpc\(^{-1}\) is usually taken in cosmic analysis, though there are hundreds of measurement value of \(H_{0}\) and lots of them are mutually inconsistent.Footnote 2 Reference [57] points out that the prior value of the \(H_{0}\) affects cosmological parameter estimation, but not very significantly. Here we take the HST prior, \(H_{0} = 73.8 \pm 2.4\) km s\(^{-1}\) Mpc\(^{-1}\) [58].

Table 1 The 95% confidence level of basic parameters in viable f(R) model with the massive neutrino by fitting the Planck TT, TE, EE\(+\)lowP and the low-redshift data: Planck lesning\(+\)RSD\(+\)BAO\(+\)JLA
Fig. 2
figure 2

The 1-D distributions of basic cosmological parameters in viable f(R) model with massive neutrino

Table 2 The 95% confidence level of derived parameters in viable f(R) model with the massive neutrino by fitting the Planck TT, TE, EE\(+\)lowP and the low-redshift data: Planck lesning\(+\)RSD\(+\)BAO\(+\)JLA
Fig. 3
figure 3

The 1-D distributions of derived cosmological parameters in viable f(R) model with massive neutrino

4.2 Constraint on neutrino mass and the base parameters in viable f(R) model producing \(\Lambda \)CDM expansion

Constraints on the neutrino mass in \(\Lambda \)CDM model or in dynamical dark energy models or in f(R) theory have been discussed in some references [1, 59,60,61,62,63,64]. Given that the constraints on \(\Sigma m_{\nu }\) (or \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}\)) are model-dependent, we fit the cosmic data to limit the mass of neutrinos in the above viable f(R) model by using the MCMC method [65,66,67,68,69,70]. Obviously, extra parameters \(f_{R0}\) and \(\Sigma m_\nu \) (or \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}\) with the required \(N_\mathrm{eff}\)) are added, relative to the base \(\Lambda \)CDM model. Table 1 and Fig. 1 show the 95% limits of basic parameters in f(R) model. One can see the upper bound on the mass of active neutrino \(\Sigma m_{\nu }< 0.202\), which is comparable with other results. For example, adding a single free parameter \(\Sigma m_{\nu }\) to the base \(\Lambda \)CDM model, fitting different data gives \(\Sigma m_{\nu }<0.177\) eV [59], \(\Sigma m_{\nu }<0.17\) eV [1] or \(\Sigma m_{\nu }<0.254\) eV [60]; adding \(\Sigma m_{\nu }\) to the dynamical DE model, fitting cosmic data gives \(\Sigma m_{\nu }<0.304\) eV in wCDM model [59] or \(\Sigma m_{\nu }<0.113\) eV in the holographic DE model [59]; and \(\Sigma m_{\nu }<0.451\) eV and \(\Sigma m_{\nu }<0.214\) eV are given in the Starobinsky f(R) and exponential f(R) models [61], respectively.Footnote 3 Table 1 also exhibits the constraint result \(m_{\nu , \mathrm{eff}}^\mathrm{sterile}<0.757\) with \(N_\mathrm{eff}<3.22\) for the sterile-neutrino case in viable f(R) model. One can compare these results with other ones. For example, fitting the different cosmic data gives \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}<0.52\) eV with \(N_\mathrm{eff}<3.7\) [1], \(m_{\nu , \mathrm{eff}}^\mathrm{sterile}<0.479\) eV with \(\Delta N_\mathrm{eff}={<}0.98\) [60], or \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}<0.43\) with \(N_\mathrm{eff}<3.96\) in \(\Lambda \)CDM model [62], and \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}<0.61\) with \(N_\mathrm{eff}<3.95\) in the f(R) model [62]. Obviously, a higher upper limit on \( m_{\nu , \mathrm{eff}}^\mathrm{sterile}\) and a lower limit on \(N_\mathrm{eff}\) are obtained in our study. Some inconsistent results on the sterile-neutrino mass can also be found, for example, the sterile neutrino mass \(0.47\, \mathrm{eV}< m_{\nu ,\mathrm{sterile}}^\mathrm{eff}<1\,\mathrm{eV}\) (\(2\sigma \)) is given in a f(R) model and \(0.45\,\mathrm{eV}< m_{\nu ,\mathrm{sterile}}^\mathrm{eff}< 0.92\, \mathrm{eV}\) is given in the \(\Lambda \)CDM model [63], or the active-neutrino mass \(\sum m_{\nu }=0.35\pm 0.10\) is presented in the \(\Lambda \)CDM model [4]. The constraint results on the model parameter in a viable f(R) theory are \(f_{R0}\times 10^{-6}> -1.89\) for the active-neutrino case and \(f_{R0}\times 10^{-6}> -2.02\) for the sterile-neutrino case at the %95 limit. Though the fitting results on \(f_{R0}\) are affected by the additional parameters \(\Sigma m_\nu \) (or \(m_{\nu ,\mathrm{sterile}}^\mathrm{eff}\) with \(N_\mathrm{eff}\)), for using the Planck 2015 data in this paper it has a more stringent constraint than the result given by Ref. [71]: \(f_{R0}\times 10^{-6}=-2.58^{+2.14}_{-0.58}\) in the \(1\sigma \) region.

Table 1 also lists the values of six basic cosmological parameters. \(\Omega _{b}h^2\) is the current baryon density, \(\Omega _{c}h^2\) is the cold dark matter density at present, \(\theta _{MC}\) denotes the approximation to \(r_{*}/D_{A}\), \(\tau \) represents the Thomson scattering optical depth due to reionization, \(\mathrm{{ln}}(10^{10} A_s)\) is the Log power of the primordial curvature perturbations, and \(n_s\) is the scalar spectrum power-law index. From Table 1 and Fig. 2, it can be seen that the neutrino properties to a much higher extent affect the fitting value of the cold dark matter density than the fitting values of the other parameters. These results could be interpreted as follows. Since the massive neutrinos are considered as one kind of dark matter in the universe, the mass of the neutrino (active or sterile) would directly affect the dimensionless energy density of dark matter. According to the constraint results on \(\Omega _{c}h^{2}\) and \(\Omega _{\nu }h^{2}\), one can see that the larger uncertainty of \(\Omega _{c}h^{2}\) value is caused by the looser constraint on the dimensionless energy density of sterile neutrino \(\Omega _{\nu }h^{2}\), which maybe reflects that there is less information on sterile neutrino from cosmic observations. However, the constraint on \(\Omega _{c}h^{2}\) is stricter for the active-neutrino case, since the constraint on the dimensionless energy density of the active neutrino \(\Omega _{\nu }h^{2}\) is tighter than the case of the sterile neutrino, which maybe reflects that there is more information on the active neutrino from cosmic observations. Except for \(\Omega _{c}h^{2}\), the other basic parameters in Table 1 are not directly related to the neutrino density, so the effects on the fitting values of the other basic parameters from the neutrino characters are smaller.

4.3 Constraint on derived parameters in viable f(R) model producing \(\Lambda \)CDM expansion

The values of the derived parameters of interest are calculated and listed in Table 2. It includes 20 parameters listed in table 4 of Ref. [1] and three other parameters \([\log _{10}(B_{0}),\Omega _{\nu }h^{2}, Y_{p}]\). Concretely, \(\Omega _{m}\) is the current dimensionless matter density, \(z_{re}\) is the redshift at which universe is half reionized, \(t_{0}\) denotes the age of the universe today (in Gyr), \(z_{*}\) denotes the redshift for which the optical depth equals unity, \(r_{*}\) denotes the comoving size of the sound horizon at \(z=z_{*}\), \(\theta _{*}\) denotes the angular size of sound horizon at \(z=z_{*} (r_{*}/D_{A})\), \(z_\mathrm{drag}\) denotes the redshift at which the baryon-drag optical depth equals unity, \(r_\mathrm{drag}\) denotes the comoving size of the sound horizon at \(z=z_\mathrm{drag}\), \(k_{D}\) denotes the characteristic damping comoving wavenumber (Mpc\(^{-1}\)), \(z_\mathrm{eq}\) denotes the redshift of the matter–radiation equality, \(\Omega _{\nu }h^2\) is the neutrino density, \(Y_{p}\) denotes the fraction of baryonic mass in helium. Obviously, from Table 2 we can see that the constraint results on \(H_{0}\) and \(\sigma _{8}\) are: \(H_{0}=67.9^{+1.1}_{-1.1}\) and \(\sigma _{8}=0.813^{+0.023}_{-0.023}\) for the active-neutrino case, and \(H_{0}=68.4^{+1.1}_{-0.99} \) and \(\sigma _{8}=0.811^{+0.023}_{-0.022}\) for the sterile-neutrino case, which are compatible with results given by [59]. For these constraint results on \(H_{0}\), it is also shown that the tension between direct and CMB measurements of \(H_0\) gets slightly weaker in our considered model than that in the base \(\Lambda \)CDM model, where \(H_{0}=67.6\pm 0.6\) is given by Ref. [1]. In addition, it is found from Fig. 3 that the neutrino properties much affect the fitting value of parameters: \(z_\mathrm{eq}\), \(k_\mathrm{eq}\), \(100\theta _{s,\mathrm{eq}}\), \(\Omega _{\nu }h^{2}\), and \(Y_{p}\), which could be partly explained by the dependence of the parameters on the cold dark matter density and might be useful for testing the neutrino properties in experiments. The values of \(\sigma _{8}\) in a viable f(R) model are almost the same for the cases of different-species neutrinos, and the same result is also suitable for the parameters \(f\sigma _{8}\), \(A_s e^{-2\tau }\), and \(\theta _{*}\), as exhibited in Figs. 3 and 4.

Fig. 4
figure 4

The values of \(f\sigma _{8}\) calculated in the viable f(R) model with the massive neutrino, where blue line denotes the active-neutrino case, and red line denotes the sterile-neutrino case. Ten dots with error bar denote the observational datapoints from Refs. [34,35,36,37,38,39]

5 Conclusion

Tension between several observations was found recently. The studies of tensions are important, since they are useful to search for new physics. The massive neutrinos are introduced in cosmological models to solve the tensions concerning the inconsistent values of \(H_{0}\) (or \(\sigma _{8}\)). Investigating other scenarios to solve these tensions and restricting the mass of neutrinos in different scenarios are significant. Given that several forms of f(R) are found to be nonphysical, we study the viable f(R) gravity with the massive neutrinos in this paper. We fit the current observational data: Planck-2015 CMB, RSD, BAO, and SNIa to constrain the mass of neutrinos in viable f(R) theory. The constraint results at 95% confidence level are \(\Sigma m_\nu <0.202\) eV for the active-neutrino case and \(m_{\nu , \mathrm{sterile}}^\mathrm{eff}<0.757\) eV with \(N_\mathrm{eff}<3.22\) for the sterile-neutrino case, which are comparable with some other results. For the effects by the mass of the neutrinos, the constraint results on model parameter become \(f_{R0}\times 10^{-6}> -1.89\) and \(f_{R0}\times 10^{-6}> -2.02\) for the two cases, respectively. It is also shown that the fitting values of several parameters strongly depend on the neutrino properties, such as the cold dark matter density \(\Omega _{c}h^{2}\), the cosmological quantities at matter–radiation equality: \(z_\mathrm{eq}\), \(k_\mathrm{eq}\), and \(100\theta _{s,\mathrm{eq}}\), the neutrino density \(\Omega _{\nu }h^{2}\), and the fraction of baryonic mass in helium \(Y_{p}\). Finally, the constraint result shows that the tension between direct and CMB measurements of \(H_0\) gets slightly weaker in the viable f(R) model than that in the base \(\Lambda \)CDM model.