1 Introduction

The Einstein’s interpretation of the well known principle of equivalence of inertial and gravitational masses in terms of the proximate relation between inertia and gravitation [1] which ensuingly led to the establishment of the extremely local principle of equivalence and GR. Following Einstein, a general connection between inertia and gravitation has been employed as a guiding principle to render GR nonlocal in just the same manner that accelerated observers in Minkowski spacetime are nonlocal.

The general problems with action principles for nonlocal theories in regard to the symmetric issues of kernel has been elaborated and a classical nonlocal generalization of Einstein’s theory of gravitation has been extensively developed [2,3,4,5]. The emergence of nonlocality for instance from integrating out certain physical degrees of freedom has also been discussed [6].

Nonlocal gravity (NLG) is originally a tetrad theory established upon the frame field of a fundamental family of observers in spacetime with the gravitational field characterized by torsion, which is most directly related to the tetrad frame field of the fundamental observers. The form of the field equation of nonlocal gravity gives rise to the possibility that nonlocal gravity may simulate dark matter [7].

The classical action of gravity being local and is usually used to develop the cosmological models be it the Einstein–Hilbert action coupled to matter or some modified gravity theory, the non locality effect comes from the quantum fluctuations and gets incorporated into the corresponding quantum effective action. Well understood in the ultraviolet regime but much less in the infrared, these nonlocalities could in principle give rise to important cosmological effects [8]. The main difference between the classical action which is fundamentally local and the quantum effective action is that, the signs of nonlocality starts surfacing whenever the theory contains massless or light particles.

The essential difference between nonlocal gravity and general relativity has been expressed in terms of spacetime memory or the presence of effective dark matter. In terms of the memory from the past, nonlocality has been considered a natural feature of the universal gravitational interaction. Some of the consequences of non local gravity for instance the nonlocal modifications of Newtonian gravity and linearized gravitational waves have been given a detailed attention [9].

The isotropy of the cosmic microwave background radiation is a strong indication that a small amplitude inhomogeneities must have existed at the time of decoupling. The intrinsic gravitational instability of a nearly homogeneous distribution of matter has lead to the colossal growth of such inhomogeneities from the recombination era to the present.

The exact manner in which structure formation like the formation of galaxies, clusters of galaxies and thereafter the spread of the cosmic web have come about is still a mystery. But a general belief is that dark matter has played a crucial role in this whole development. This has been known and studied that under the assumptions of spatial homogeneity and isotropy, and as long as the net pressure, as being assumed as a source of gravity, can be neglected in comparison with the energy density associated with the matter content of the universe, Newtonian cosmology is an ultimate approximation to the standard Friedmann–Lemaître–Robertson–Walker (FLRW) cosmological models of general relativity. More generally, it has been sort out that after recombination era, Newtonian gravitation can be efficiently applied in the study of nonrelativistic motion of matter on subhorizon scales [10,11,12,13]. The important task remains is to investigate whether nonlocal gravity is fulfilling the capability of solving the problem of large-scale cosmological structure formation.

The clustering of galaxies, their distribution functions and the corresponding thermodynamics have been extensively studied using Newtonian gravity both for point masses and for extended masses [14,15,16,17,18,19,20].

The modification in the gravity action can lead to the variations in the gravitational potential in the low-energy limit and the modified potential reduces to the Newtonian one on the Solar system scale as well. It has been analysed in [21,22,23] that the modified gravitational potential could fit galaxy rotation curves even without considering dark matter or dark energy. This in fact has, provided opportunities to draw a formal analogy between the corrections due to the modified Newtonian potential and the dark energy models.

The clustering of galaxies has been studied by considering Newtonian modified potential of a brane world model by using standard techniques of statistical mechanics and the thermodynamics of gravitational clustering of galaxies have been discussed [24]. The modification to the Newtonian potential are due to the super-light modes in the brane world models. It may be noted that the Newtonian potential also gets modified from various different approaches. The essential to refer here include non-commutative geometry [25, 26], minimal length in quantum gravity [27], f(R) gravity [28, 29], \(\Lambda \)CDM [30] and the entropic force [31]. Work has been done to see the impact of modified potentials on thermodynamics of galaxy clustering [20, 24, 32]. The effect of the cosmological constant on the clustering of galaxies has been used deriving the gravitational partition function for galaxies in a universe with a cosmological constant and the influence on distribution of galaxies has been studied [33, 34]. It is important to mention the phenomenological Tohline–Kuhn modified gravity approach to the problem of dark matter [35,36,37]. This paper is dedicated to study the clustering of galaxies by using the nonlocal aspect of gravity which is actually the nonlocal extension of general relativity. This is done in the linear weak field approximation by using the modified gravitational potential for a point mass [36]. The work in this paper includes the Boltzmann statistical approach and Tsallis statistical approach to exclusively get the partition function and the thermodynamic properties of gravitating gas.

2 Partition function of an interacting system in the non-local gravity using Boltzmann statistics

The general partition function of a system of N particles of mass m interacting through the modified gravitational potential with potential energy is \(\Phi \), can be written as

$$\begin{aligned} {{\mathcal {Z}}}_\nu= & {} \frac{1}{N!}\int d^{\nu }pd^{\nu }r \nonumber \\&\times \exp \left\{ -\left[ \sum _{i=1}^{N}\frac{p_{i}^2}{2m}+\Phi (r_{1}, r_{2}, r_{3}, \ldots , r_{N})\right] T^{-1}\right\} .\nonumber \\ \end{aligned}$$
(2.1)

The nonlocal potential energy for point mass is written as [36]

$$\begin{aligned} (\Phi _{i,j})_{nl}=-\frac{Gm^2}{r_{ij}}+\frac{Gm^2}{\lambda }\ln \left( \frac{r_{ij}}{\lambda }\right) . \end{aligned}$$
(2.2)

For large N number of galaxies one can write

$$\begin{aligned} (\Phi _{i,j})_{nl}=-\frac{N(N-1)Gm^2}{2r_{ij}}+\frac{N(N-1)Gm^2}{2\lambda }\ln \left( \frac{r_{ij}}{\lambda }\right) .\nonumber \\ \end{aligned}$$
(2.3)

The partition function \({{\mathcal {Z}}}\) in \(\nu \) dimensions.

$$\begin{aligned} {{\mathcal {Z}}}_\nu= & {} -\frac{1}{N!}\int \limits _{-\infty }^{\infty }d^\nu x\int \limits _{-\infty }^{\infty }d^\nu p \exp \left[ \beta \left( \frac{N(N-1)Gm^2}{2r}\right. \right. \nonumber \\&\left. \left. -\frac{N(N-1)Gm^2}{2\lambda }\ln \left( \frac{r}{\lambda }\right) -\frac{Np^2}{2m}\right) \right] . \end{aligned}$$
(2.4)

Or equivalently:

$$\begin{aligned}&{{\mathcal {Z}}}_\nu =-\frac{1}{\lambda ^{-\frac{\beta N(N-1)Gm^2}{2\lambda }}N!}\left[ \frac{2\pi ^{\frac{\nu }{2}}}{\Gamma \left( \frac{\nu }{2}\right) }\right] ^2 \int \limits _0^{\infty }r^{\nu -\frac{\beta N(N-1)Gm^2}{2\lambda }-1}\nonumber \\&\quad \times \exp \left[ \beta \left( \frac{N(N-1)Gm^2}{2r}\right) \int \limits _0^{\infty }p^{\nu -1} dp\exp \left( -\frac{Np^2}{2m}\right) \right] .\nonumber \\ \end{aligned}$$
(2.5)

Using the integrals [38, 39]:

$$\begin{aligned}&\int \limits _0^{\infty }r^{\nu -\frac{\beta N(N-1)Gm^2}{2\lambda }-1}dr \exp \left[ \beta \left( \frac{N(N-1)Gm^2}{2r}\right) \right] \nonumber \\&\quad = \cos \left( \pi \left( \nu -\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \right) \nonumber \\&\qquad \times \left( \frac{N(N-1)\beta Gm^2}{2}\right) ^{\nu -\frac{\beta N(N-1)Gm^2}{2\lambda }}\nonumber \\&\qquad \times \Gamma \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-\nu \right) \end{aligned}$$
(2.6)

and

$$\begin{aligned} \int \limits _0^{\infty }p^{\nu -1}dr\exp \left( -\beta \left( \frac{Np^2}{2m}\right) \right) =\frac{2^{-\nu } \left( \frac{N\beta }{2m}\right) ^\frac{-\nu }{2}\sqrt{\pi }\Gamma (\nu )}{\Gamma \left( \frac{\nu +1}{2}\right) }.\nonumber \\ \end{aligned}$$
(2.7)

Thus the partition function \({{\mathcal {Z}}}\)

$$\begin{aligned}&{{\mathcal {Z}}}=-\frac{1}{\lambda ^{-s}N!}\left[ \frac{2\pi ^{\frac{\nu }{2}}}{\Gamma \left( \frac{\nu }{2}\right) }\right] ^2\cos \left( \pi \left( \nu -\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \right) \nonumber \\&\qquad \times \left( \frac{N(N-1)\beta Gm^2}{2}\right) ^{\nu -s}\times \Gamma \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-\nu \right) \nonumber \\&\qquad \times \frac{2^{-\nu } \left( \frac{N\beta }{2m}\right) ^\frac{-\nu }{2}\sqrt{\pi }\Gamma (\nu )}{\Gamma \left( \frac{\nu +1}{2}\right) }. \end{aligned}$$
(2.8)

For three dimensions \(\nu =3\) and the partition function becomes

$$\begin{aligned} {{\mathcal {Z}}}= & {} -\frac{4\lambda ^{\frac{\beta N(N-1)Gm^2}{2\lambda }}\pi ^{\frac{3}{2}}}{N!}\cos \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\times \left( \frac{N(N-1)Gm^2}{2}\right) ^{3-\frac{\beta N(N-1)Gm^2}{2\lambda }}\left( \frac{N}{2m}\right) ^{-\frac{3}{2}}\nonumber \\&\times \beta ^{\frac{3}{2}-\frac{\beta N(N-1)Gm^2}{2\lambda }}\Gamma \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) . \end{aligned}$$
(2.9)

Here we see that there are no poles in the partition function obtained from Boltzmann statistics provided \(\frac{\beta N(N-1)Gm^2}{2\lambda }>3\). The value of \(\frac{\beta N(N-1)Gm^2}{2\lambda }\) for a particular system depends on the value of non local parameter \(\lambda \), which is small enough to make \(\frac{\beta N(N-1)Gm^2}{2\lambda }\) greater than 3. Thus the partition function reveals that the non local gravity provides us a divergence free gravity model. Typical behavior of the partition function illustrated by plots of Fig. 1. Note that the oscillation of the system is more pronounced near the origin of the temperatures. The permitted physical temperatures are those for which \({{\mathcal {Z}}}>0\).

Fig. 1
figure 1

Partition function in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

3 Internal energy and the specific heat of the system in nonlocal gravity using Boltzmann partition function

Internal energy U is obtained as

$$\begin{aligned} U= & {} -\frac{1}{{{\mathcal {Z}}}}\frac{\partial {{\mathcal {Z}}}}{\partial \beta } \end{aligned}$$
(3.1)
$$\begin{aligned} U= & {} \left[ -\frac{3}{2\beta }+\frac{N(N-1)Gm^2}{2\lambda }\left( 1+\ln \frac{\beta N(N-1) Gm^2}{2\lambda }\right. \right. \nonumber \\&-\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&-\left. \left. \psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right] . \end{aligned}$$
(3.2)

In the plot of the Fig. 2 we can see periodic nature of the internal energy.

Fig. 2
figure 2

Internal energy in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

Specific heat \(C_v\) is:

$$\begin{aligned}&C_V=\left[ -\frac{3k}{2}-{k\frac{\beta N(N-1)Gm^2}{2\lambda }}\right. \nonumber \\&\quad \times \left( 1+\pi \frac{\beta N(N-1)Gm^2}{2\lambda }\sec ^2\pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \right. \nonumber \\&\quad - \left. \left. \frac{\beta N(N-1)Gm^2}{2\lambda }\psi ^{\prime }\left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right] . \end{aligned}$$
(3.3)
Fig. 3
figure 3

Specific heat in terms of temperature with \(G=m=k=1\), and \(\lambda =1/3\)

Larger N yields to the negative specific heat which means that the system is self-gravitating (see Fig. 3).

4 Thermodynamic properties of a system in nonlocal gravity using Boltzmann statistics

Helmholtz free energy F is obtained using

$$\begin{aligned} F=-\frac{1}{\beta }\ln {{\mathcal {Z}}}. \end{aligned}$$
(4.1)

Thus F is obtained and written as

$$\begin{aligned} F= & {} -\frac{1}{\beta }\ln \left[ \frac{4\lambda ^{\frac{\beta N(N-1)Gm^2}{2\lambda }}\pi ^{\frac{3}{2}}}{N!}\cos \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \right. \nonumber \\&\times \left( \frac{N(N-1)Gm^2}{2}\right) ^{3-\frac{\beta N(N-1)Gm^2}{2\lambda }}\nonumber \\&\times \left. \left( \frac{N}{2m}\right) ^{-\frac{3}{2}}\beta ^{\frac{3}{2}-\frac{\beta N(N-1)Gm^2}{2\lambda }}\Gamma \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right] .\nonumber \\ \end{aligned}$$
(4.2)

In Fig. 4 we can see typical behavior of Helmholtz free energy.

Fig. 4
figure 4

Helmholtz free energy in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

The entropy S is obtained from

$$\begin{aligned} TS=U-F. \end{aligned}$$
(4.3)

Thus:

$$\begin{aligned}&ST=\left[ -\frac{3}{2\beta }+\frac{s}{\beta }\left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \right. \nonumber \\&\quad -\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\quad -\left. \left. \psi (\frac{\beta N(N-1)Gm^2}{2\lambda }-3)\right) \right] \nonumber \\&\quad +\frac{1}{\beta }\ln \left[ \frac{4\lambda ^{\frac{\beta N(N-1)Gm^2}{2\lambda }}\pi ^{\frac{3}{2}}}{N!}\cos \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \right. \nonumber \\&\quad \times \left. \left( \frac{N(N-1)Gm^2}{2}\right) ^{3-\frac{\beta N(N-1)Gm^2}{2\lambda }}\left( \frac{N}{2m}\right) ^{-\frac{3}{2}}\right. \nonumber \\&\quad \times \beta ^{\frac{3}{2}-\frac{\beta N(N-1)Gm^2}{2\lambda }}\Gamma \left. \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right] .\!\!\!\! \end{aligned}$$
(4.4)

Pressure P is obtained using

$$\begin{aligned} PV=\frac{2N}{3}U. \end{aligned}$$
(4.5)

Thus:

$$\begin{aligned} PV= & {} \frac{2N}{3}\left[ -\frac{3}{2\beta }+\frac{\frac{\beta N(N-1)Gm^2}{2\lambda }}{\beta }\left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \right. \nonumber \\&-\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&-\left. \left. \psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right] \!\!\!\!\!\! \end{aligned}$$
(4.6)

and:

$$\begin{aligned} \beta PV= & {} \frac{2N}{3}\left[ -\frac{3}{2}+\frac{\beta N(N-1)Gm^2}{2\lambda }\right. \nonumber \\&\times \left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \nonumber \\&-\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\left. \left. -\psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right] . \end{aligned}$$
(4.7)

The chemical potential \(\mu \) is obtained using (Figs. 5, 6)

$$\begin{aligned} \mu =\left( \frac{\partial F}{\partial N}\right) _T. \end{aligned}$$
(4.8)

Thus:

$$\begin{aligned}&\mu =\frac{1}{\beta }\left[ \frac{3}{2N}+\ln N+\frac{(2N-1)\frac{\beta N(N-1)Gm^2}{2\lambda }}{N(N-1)}\right. \nonumber \\&\quad \times \left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \nonumber \\&\quad -\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\quad \left. \left. -\frac{3}{\frac{\beta N(N-1)Gm^2}{2\lambda }}-\psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right] \nonumber \\ \end{aligned}$$
(4.9)

and

$$\begin{aligned}&{\beta N\mu }=\left[ \frac{3}{2}+N\ln N+\frac{(2N-1)\frac{\beta N(N-1)Gm^2}{2\lambda }}{(N-1)}\right. \nonumber \\&\quad \times \left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \nonumber \\&\quad -\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\quad \left. \left. -\frac{3}{\frac{\beta N(N-1)Gm^2}{2\lambda }}-\psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right] .\nonumber \\ \end{aligned}$$
(4.10)
Fig. 5
figure 5

State equation in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

Fig. 6
figure 6

Chemical potential in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

5 Distribution function from Boltzmann statistics

The grand canonical partition function \(Z_G\) can be defined as

$$\begin{aligned} \ln Z_G=\beta PV. \end{aligned}$$
(5.1)

From chemical potential \(\mu \) we find the fugacity z as

$$\begin{aligned} z^N=e^{N\beta \mu }. \end{aligned}$$
(5.2)

The distribution function follows as

$$\begin{aligned} F(N)=\frac{z^N{{\mathcal {Z}}}}{Z_G}. \end{aligned}$$
(5.3)

The distribution function follows as

$$\begin{aligned}&F(N)=\frac{4\lambda ^{\frac{\beta N(N-1)Gm^2}{2\lambda }}\pi ^{\frac{3}{2}}N^N}{N!}\cos \pi \nonumber \\&\quad \times \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\quad \times \left( \frac{N(N-1)Gm^2}{2}\right) ^{3-\frac{\beta N(N-1)Gm^2}{2\lambda }}\nonumber \\&\quad \times \left( \frac{N}{2m}\right) ^{-\frac{3}{2}}\beta ^{\frac{3}{2}-\frac{\beta N(N-1)Gm^2}{2\lambda }}\Gamma (s-3)\nonumber \\&\quad \times \exp \left\{ \frac{3}{2}+\frac{(2N-1)s}{(N-1)}\left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \right. \nonumber \\&\quad -\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\quad -\left. \frac{3}{\frac{\beta N(N-1)Gm^2}{2\lambda }}-\psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \nonumber \\&\quad -\frac{2N}{3}\left( -\frac{3}{2}+\frac{\beta N(N-1)Gm^2}{2\lambda }\right. \nonumber \\&\quad \times \left( 1+\ln \frac{\beta N(N-1)Gm^2}{2\lambda }\right. \nonumber \\&\quad -\pi \tan \pi \left( 3-\frac{\beta N(N-1)Gm^2}{2\lambda }\right) \nonumber \\&\quad \left. -\left. \left. \psi \left( \frac{\beta N(N-1)Gm^2}{2\lambda }-3\right) \right) \right) \right\} . \end{aligned}$$
(5.4)

In Fig. 7 we can see that distribution probability happen only at the special temperatures. In another word, the curve of the distribution function is very sharp. Note that the permitted physical temperatures are those for which \(F(N)>0.\)

Fig. 7
figure 7

Distribution function in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

The temperature profile for the sample of ten clusters of galaxies observed by Chandra telescope has been tabulated [40, 41]. The range is from 2.26 to 19.34 keV for ten clusters. The distribution function as plotted in Fig. 7 in this observational range seems to show more positive peaks, thus in agreement with the observational data available to us from the Chandra Data.

6 Tsallis statistical analysis of the non-local gravitational interactions

We repeat the whole analysis using Tsallis statistics.

Tsallis q-exponential is defined as the distribution:

$$\begin{aligned} e_q(x)=[1+(q-1)x]_+^{\frac{1}{q-1}}. \end{aligned}$$
(6.1)

Or equivalently

$$\begin{aligned} e_q(x)= {\left\{ \begin{array}{ll} 1+(q-1)x]^{\frac{1}{q-1}};&{} 1+(q-1)x>0\\ 0;&{} 1+(q-1)x<0. \end{array}\right. } \end{aligned}$$
(6.2)

7 Tsallis partition function for system in non local gravity

Let’s consider the distribution \(\frac{1}{r}=PV\frac{1}{r}\). Then \(\frac{1}{r}\mid _{r=0}=0\). First we do the calculation in \(\nu \) dimensions. Let \(q>1\). The nonlocal potential energy for point mass is written as

$$\begin{aligned} (\Phi _{i,j})_{nl}=-\frac{Gm^2}{r_{ij}}+\frac{Gm^2}{\lambda }\ln \left( \frac{r_{ij}}{\lambda }\right) . \end{aligned}$$
(7.1)

For large N number of galaxies one can write

$$\begin{aligned} (\Phi _{i,j})_{nl}=-\frac{N(N-1)Gm^2}{2r_{ij}}+\frac{N(N-1)Gm^2}{2\lambda }\ln \left( \frac{r_{ij}}{\lambda }\right) .\nonumber \\ \end{aligned}$$
(7.2)

Keeping in view the complicated procedure of solving integrals in Tsallis statistics we use \(\ln (1+z)=z\) approximation \(\ln (\frac{\lambda }{r}-1+1)=\frac{\lambda }{r}-1\)

$$\begin{aligned} (\Phi _{i,j})_{nl}=-2\frac{N(N-1)Gm^2}{2r_{ij}}+\frac{N(N-1)Gm^2}{2\lambda }. \end{aligned}$$
(7.3)

For the partition we have

$$\begin{aligned} {{\mathcal {Z}}}_\nu= & {} \int \limits _{-\infty }^{\infty }d^\nu x\int \limits _{-\infty }^{\infty }d^\nu p \left[ 1+(q-1)\beta \left( \frac{N(N-1)Gm^2}{r}\right. \right. \nonumber \\&\left. \left. -\frac{N(N-1)Gm^2}{2\lambda }-\frac{Np^2}{2m}\right) \right] _+^{\frac{1}{q-1}}. \end{aligned}$$
(7.4)

And evaluating the angular integral we obtain:

$$\begin{aligned}&{{\mathcal {Z}}}_\nu =\left[ \frac{2\pi ^{\frac{\nu }{2}}}{\Gamma \left( \frac{\nu }{2}\right) }\right] ^2 \int \limits _0^{\infty }r^{\nu -1}dr\int \limits _0^{\infty }p^{\nu -1} dp \left[ 1+(q-1)\beta \right. \nonumber \\&\quad \times \left. \left( \frac{N(N-1)Gm^2}{r}-\frac{N(N-1)Gm^2}{2\lambda }-\frac{Np^2}{2m}\right) \right] _+^{\frac{1}{q-1}}.\nonumber \\ \end{aligned}$$
(7.5)

Taking into account that:

$$\begin{aligned}&1+(q-1)\beta \left( \frac{N(N-1)Gm^2}{r}-\frac{N(N-1)Gm^2}{2\lambda }-\frac{Np^2}{2m}\right) \nonumber \\&\quad >0 \end{aligned}$$
(7.6)

should be:

$$\begin{aligned} r<\frac{2(q-1)\beta N(N-1)Gm^3\lambda }{\beta N(N-1)(q-1)Gm^3+\beta N(q-1)p^2\lambda -2m\lambda }.\nonumber \\ \end{aligned}$$
(7.7)

We have then:

$$\begin{aligned} {{\mathcal {Z}}}_\nu= & {} \left[ \frac{2\pi ^{\frac{\nu }{2}}}{\Gamma \left( \frac{\nu }{2}\right) }\right] ^2 \int \limits _0^{\infty }p^{\nu -1}dp \int \limits _0^{r_0} r^{\nu -1}dr\nonumber \\&\times \left[ 1+(q-1)\beta \left( \frac{N(N-1)Gm^2}{r}\nonumber \right. \right. \\&\left. \left. -\frac{N(N-1)Gm^2}{2\lambda }-\frac{Np^2}{2m}\right) \right] ^{\frac{1}{q-1}}. \end{aligned}$$
(7.8)

Evaluating the integral we arrive to the result:

$$\begin{aligned}&Z_\nu =\frac{1}{2}\left[ \frac{2\pi ^\frac{\nu }{2}}{\Gamma \left( \frac{\nu }{2}\right) }\right] ^2 (2m\lambda )^{-\frac{1}{q-1}}[2(q-1)\beta N(N-1)Gm^3\lambda )^{\nu }\nonumber \\&\quad \times [\beta N(q-1)\lambda )^{-\frac{\nu }{2}} [\beta N(N-1)(q-1)Gm^3-2m\lambda ]^{\frac{3}{2}}\nonumber \\&\quad \times B\left( 1+\frac{1}{q-1},\nu -\frac{1}{q-1}\right) B\left( \frac{\nu }{2},\frac{\nu }{2}-\frac{1}{q-1}\right) . \end{aligned}$$
(7.9)

After simplification we get the partition function in three dimensions as

$$\begin{aligned} Z= & {} \frac{16}{27}\pi ^3\frac{(\beta N\lambda )^{-\frac{3}{2}}}{(m\lambda )^3} [\beta N(N-1)Gm^3\lambda ]^3 \nonumber \\&\times [2\beta N(N-1)Gm^3-2m\lambda ]^{\frac{3}{2}}. \end{aligned}$$
(7.10)

Finally we have:

$$\begin{aligned} Z= & {} \frac{2^{\frac{11}{2}}\pi ^3}{27} \frac{(\beta N\lambda )^{-\frac{3}{2}}}{(m\lambda )^3} [\beta N(N-1)Gm^3\lambda ]^3 \nonumber \\&\times [\beta N(N-1)Gm^3-3m\lambda ]^{\frac{3}{2}}. \end{aligned}$$
(7.11)

In Tsallis statistical analysis of the non local gravity we again find no poles in the partition function and thus we again emphasise on the fact that the non local gravity is a divergence free model of gravity (Fig. 8).

Fig. 8
figure 8

Partition function in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\)

8 Tsallis internal energy and specific heat of an interacting system in non local gravity

We calculate the internal energy and specific heat to see the other important properties of the system. We use:

$$\begin{aligned}&{{\mathcal {Z}}}_\nu \langle {{\mathcal {U}}}\rangle _\nu =\left[ \frac{2\pi ^{\frac{\nu }{2}}}{\Gamma \left( \frac{\nu }{2}\right) }\right] ^2 \int \limits _0^{\infty }p^{\nu -1}dp \int \limits _0^{r_0} r^{\nu -1} dr\nonumber \\&\quad \times \left( -\frac{N(N-1)Gm^2}{r}+\frac{N(N-1)Gm^2}{2\lambda }+\frac{Np^2}{2m}\right) \nonumber \\&\quad \times \left[ 1+(q-1)\beta \left( \frac{N(N-1)Gm^2}{r}\nonumber \right. \right. \\&\quad \left. \left. -\frac{N(N-1)Gm^2}{2\lambda }-\frac{Np^2}{2m}\right) \right] ^{\frac{1}{q-1}}. \end{aligned}$$
(8.1)

Then, proceeding in the same way as for the partition function (Fig. 9), we obtain:

$$\begin{aligned}&\langle {{\mathcal {U}}}\rangle =\frac{N(N-1)Gm^2}{2\lambda }\nonumber \\&\quad +\frac{1}{{{\mathcal {Z}}}}\left\{ \frac{2^{\frac{13}{2}}\pi ^3}{135} \frac{N(N-1)Gm^2}{(m\lambda )^3}(\beta N\lambda )^{-\frac{3}{2}}\right. \nonumber \\&\quad \times \left[ \beta N(N-1)Gm^3\lambda \right] ^2\left[ \beta N(N-1)Gm^3-3m\lambda \right] ^{\frac{5}{2}}\nonumber \\&\quad - \frac{2^{\frac{9}{2}}\pi ^3}{135}\frac{N}{m}\times \frac{(\beta N\lambda )^{-\frac{5}{2}}}{(m\lambda )^3} \left[ \beta N(N-1)Gm^3\lambda \right] ^3\nonumber \\&\quad \times \left. \left[ \beta N(N-1)Gm^3-3m\lambda \right] ^{\frac{5}{2}}\right\} . \end{aligned}$$
(8.2)
Fig. 9
figure 9

Mean energy in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\). The blue line corresponds to \(N=10\) and the brown one to \(N=15\)

$$\begin{aligned} \langle {{\mathcal {U}}}\rangle =\frac{3}{10}\left( \frac{N(N-1)Gm^2}{\lambda }-3kT\right) . \end{aligned}$$
(8.3)

See black dash dotted line of Fig. 2.

$$\begin{aligned} C_v=-\frac{9k}{10}. \end{aligned}$$
(8.4)

Figure 10 shows the specific heat. Again the specific heat corresponds to a self-gravitating system. However, unlike our Boltzmann statistic, an oscillating system, in this case the system does not oscillate. Note that we have found a new phenomenon that we have not yet been able to explain convincingly. The specific heat of the system is independent of N. The only explanation we have found so far is that for this system, if we add more objects to it, the specific heat corresponding to each of the objects increases in such a way that the specific heat of the system remains constant. We leave the treatment of this interesting problem to the consideration of the scientific community.

9 Equations of state

Other thermodynamic properties are calculated using Tsallis statistics are as under. Then, we can evaluate the entropy \({{\mathcal {S}}}\) with the formula

$$\begin{aligned} {{\mathcal {S}}}=\ln _{\frac{4}{3}}{{\mathcal {Z}}}+{{\mathcal {Z}}}^{-\frac{1}{3}}\beta \langle {{\mathcal {U}}}\rangle . \end{aligned}$$
(9.1)

It can be rewritten in the form:

$$\begin{aligned} {{\mathcal {S}}}={-3({{\mathcal {Z}}}^\frac{-1}{3}-1)}+{{\mathcal {Z}}}^{-\frac{1}{3}}\beta \langle {{\mathcal {U}}}\rangle \end{aligned}$$
(9.2)

or equivalently:

$$\begin{aligned} {{\mathcal {S}}}=3+(\beta \langle {{\mathcal {U}}}\rangle -3){{\mathcal {Z}}}^{-\frac{1}{3}}. \end{aligned}$$
(9.3)

Thus:

$$\begin{aligned}&{{\mathcal {S}}}=3-\left[ \frac{3\beta }{10}\left( 3kT-\frac{N(N-1)Gm^2}{\lambda }\right) +3\right] \nonumber \\&\quad \times \left[ \frac{16}{27} [2\beta N(N-1)^2G^2m^5]^{\frac{3}{2}}\right. \nonumber \\&\quad \times \left. \left( 2\frac{\beta N(N-1)Gm^2}{2\lambda }-1\right) ^{\frac{3}{2}}\right] ^{-\frac{1}{3}}. \end{aligned}$$
(9.4)

Behavior of the entropy illustrated by Fig. 7, which shows that entropy is negative for higher temperature (Fig. 11).

Fig. 10
figure 10

Entropy of Tsallis statistics in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\). The blue line corresponds to \(N=10\) and the brown one to \(N=15\) The allowed physical temperatures are those for which \(S> 0\)

Fig. 11
figure 11

Free energy in terms of temperature with \(G=m=k=1\), and \(\lambda =1/6\). The blue line corresponds to \(N=10\) and the brown one to \(N=15\)

The free Helmholtz energy is given by:

$$\begin{aligned} {{\mathcal {F}}}=\langle {{\mathcal {U}}}\rangle -T{{\mathcal {S}}}. \end{aligned}$$
(9.5)

Thus:

$$\begin{aligned} {{\mathcal {F}}}= & {} \frac{3}{10}\left( \frac{N(N-1)Gm^2}{\lambda }-3kT\right) \nonumber \\&+T \left[ \frac{3\beta }{10}\left( 3kT-\frac{N(N-1)Gm^2}{\lambda }\right) +3\right] \nonumber \\&\times \left[ \frac{16}{27}\,\left[ 2\beta N(N-1)^2G^2m^5\right] ^{\frac{3}{2}}\right. \nonumber \\&\times \left. \left( 2\frac{\beta N(N-1)Gm^2}{2\lambda }-1\right) ^{\frac{3}{2}}\right] ^{-\frac{1}{3}}-3T. \end{aligned}$$
(9.6)

And the pressure P as:

$$\begin{aligned} P=\frac{N}{V}\frac{2\langle {{\mathcal {U}}}\rangle }{3N-2}. \end{aligned}$$
(9.7)

Then:

$$\begin{aligned} P=\frac{N}{V}\frac{6}{10(3N-2)} \left( \frac{N(N-1)Gm^2}{\lambda }-3kT\right) . \end{aligned}$$
(9.8)

In Fig. 12 we can see equation of state in Tsallis statistics.

Fig. 12
figure 12

Equation of state in terms of temperature with \(G=m=k=1\), and \(\lambda =3\). The blue line corresponds to \(N=10\) and the brown one to \(N=15\) The allowed physical temperatures are those for which \(PV\ge 0\)

The parameter \(\lambda \) which is the basic nonlocality length scale whose value has been discussed to be \(3\pm 2kpc\) [45]. For the \(\lambda \rightarrow \infty \) the nonlocality as well as the effective dark matter disappear. It has been shown that for galaxies the ratio of baryonic diameter to dark matter must be above the fixed nonlocal scale length [2].

10 Conclusion

It was well known that the Boltzmann partition function of gravity could not be calculated because the integral that defines it is exponentially divergent. In 2018 this problem was solved by Plastino and Rocca [38, 42, 43] by using the generalization of the dimensional regularization of Bollini and Giambiagi [44, 46, 47]. This generalization was based on the general quantification method of QFT’s [48,49,50,51] using Ultradistributions of Sebastiao e Silva, also known as Ultrahyperfunctions [52,53,54]. In this paper we have shown that the use of such a methodology is not necessary in the case of a specific non-local theory of gravity. To calculate the partition function, in this case, it is enough with a simple analytical extension of an integral obtained by Gradshtein and Rizhick and published in their famous “Table of Integrals, Serias and Products” [39]. With this simple extension we have shown that the result of the calculation of the partition function is finite. This is a remarkable result expected by the scientific community specialized in the treatment of non-local theories of gravity. Even more remarkable is the result of the calculation of the partition function, using the Tsallis statistics. In this case the partition function is directly finite using the Lebesgue–Stiejel integrals commonly used in statistical mechanics. We have also calculated using both statistics, the internal energy and the specific heat for this model of gravity, obtaining a finite result. Finally we have evaluated the thermodynamic functions and obtained the corresponding state functions. The oscillatory nature of partition function and the corresponding thermodynamics can be interpreted on the same footing as oscillations of energy density explained as screening mechanism in condensed matter physics called as Friedel oscillations [55] produced when a positively charged impurity is inserted into a cold metal and the same has been dubbed for the nonlocal effect produced by a gravitational impurity in the Minkowski vacuum, which causes spatial oscillations what has been beautifully named as gravitational Friedel oscillations [56]. These oscillations make their presence in the thermodynamic properties of the system interacting in the nonlocal gravity. These fluctuations might become observable in future as has been stressed in other works [57, 58]. The physical significance of these oscillations is believed to be relevant, not only because they are considered as spurious effects of higher derivative theories of gravity at the Pauli–Villars regularization scale which arise due to the presence of complex poles [57, 59], but also because they have been also shown to survive ghost-free limit [60, 61]. An aspect to be highlighted is the difference in the predictions of the Boltzmann and Tsallis statistics. With the first the system is oscillating and with the second it is not.