This is a simple question, just looking for a reference for a formula.
As far I understand the genus of a prime Fano $n$-fold is defined to be the genus of a complete intersection of $n-1$ smooth divisors in the system $|-K_{X}|$ (see https://www.math.ens.fr/~debarre/ExposePoitiers2013.pdf). For $n=3$ this number equals $$\frac{(-K_{X})^3}{2} +1.$$
Question: What is the general formula for the genus of Fano variety?
Unfortunately I was not able to find this in the literature.
Edit: I thank Pop for the formula for the quantity given above. However, this does not agree with the use of term genus used in the literature (that was an incorrect guess on my part). By https://www.math.ens.fr/~debarre/ExposePoitiers2013.pdf page 7 it seems that the most widely used definition of genus is $$\frac{(-K_{X})^n}{2 \cdot \iota(X)^n } +1 ,$$ where $\iota(X)$ is the index of $X$ i.e. the maximal divisibility of $c_{1}(X)$ in $H^{2}(X,\mathbb{Z})$.
I checked a few examples and this agrees with the way that other authors use the term genus in their papers.
Question 2: Why is this the accepted notion of genus, is there a geometric reason for this?
One could think that this is the genus of the intersection of $(n-1)$ smooth divisors in the system $$|\frac{-K_{X}}{\iota(X)}|$$, but this is not the case. For example if the index is $1$ then the formula does not give the formula of Pop. Is the definition related to $K3$ surfaces?
Edit 2: Just to make it clear that the question is resolved I write a brief explanation.
As Tom Ducat pointed out, the formula I referenced made a strong assumption on the index. Indeed the genus of a Fano variety is the genus of a curve given by intersecting divisors in the class $A = -K_{X}/I(X)$, where $I(X)$ is the index of $X$.Then by the computation of Pop's answer one can recover the formula $$g= 1+\frac{n-r-1}{2}$$, which agrees with Fujita's paper and the examples from the literature.