Imagine two battalions of $N \gg 1$ soldiers shooting at each other randomly at the same time, that is, each soldier of battalion $A$ chooses uniformly at random a soldier of battalion $B$ and each soldier of battalion $B$ chooses a soldier of battalion $A$, then every soldier shoots at the same time, bullets cross and always hit and kill. Both battalions keep shooting at each other until all the soldiers of one of the battalions have been killed. When $N$ is large, can an asymptotic estimate of the size of the remaining army be computed, like an expectancy and (possibly) $\sigma$?
It is possible to derive a very complicated explicit formula for the number of soldiers left standing, using compositions and numbers of surjections (if there are $k$ soldiers left standing, then this corresponds to a composition of $N$ and a composition of $N-k$), but computing it is very time consuming because the number of compositions grows exponentially, so I was not able to get exact numbers for $N \geq 15$.
However, computer simulations seem to indicate it is probably $N^{1/2}$ or $N^{2/3}$ for the expectancy. Is there an analytic expression for the exponent? If instead of killing with probability $p=1$, we have instead $p \in (0,1)$, is there a formula for the exponent depending on $p$? Or for instance, if $p \ll 1$?
I am asking this question in case somebody is already acquainted with the problem or knows references, as I have heard of it in class (a very long time ago) and if I remember correctly this was very difficult (elite students were struggling on it together, so if they couldn't come up with an answer, I won't either).
This is not a homework question. I have a feeling this problem was lifted from somewhere and would like to find the reference. Otherwise, if someone knows the answer, I'd love to know about it.
___ Late edit ___
Looking at the comments, it seems like some people might want to know what I'm getting personally to check whether we agree or not, which I have not told because it is mainly numerical computations (which might be wrong... though I don't think so as I computed the probabilities individually and symbolically in $\mathbb{Q}$ for small $N$ and they do sum up to $1$ exactly, and also match the comments!)
Sorry in advance, this is going to use some space, but having references can only be beneficial to make sure one is on the right track, at least numerically speaking.
As commented by user @Varun Vejalla, the probability of transiting from state $(M,N)$ to state $(M-m,N-n)$ is indeed given by
$$\frac{M!N!S(N,m)S(M,n)}{(M-m)!(N-n)!M^NN^M}$$
where $S$ denotes the Stirling numbers of the second kind.
To see this, it is easier to think in terms of surjections. The number of surjections from a set of $m$ elements to a set of $n$ elements is $S(m,n)n!$ so the formula above converts to
$$\frac{1}{M^N}\frac{1}{N^M}\binom{M}{m}\binom{N}{n}\#\text{Surj}(M,n)\#\text{Surj}(N,m)$$
which is simpler to understand. Using this formula and Matlab code, I was able to derive the probabilities $P(k)$ for $0 \leq k < N$ for $N$ up to $14$ with exact precision (values in $\mathbb{Q})$.
The first few values for $N=1,2,\ldots,5$ (each row) and $k = 0,1,\ldots,N-1$ were
$\small 1$
$\small [1/2, 1/2]$
$\small [1/2, 73/162, 4/81]$
$\small [195/512, 354691/663552, 54197/663552, 3/1024]$
$\small [1534477969/5400000000, 148142685571/259200000000, 35051681717/259200000000, 10735369/1200000000, 48/390625]$
I cannot include the remaining ones unfortunately because the numerators and denominators are egregiously large. However, I have the following approximate values:
$\small 1.0$
$\small [0.5, 0.5]$
$\small [0.5, 0.451, 0.0494]$
$\small [0.381, 0.535, 0.0817, 0.00293]$
$\small [0.284, 0.572, 0.135, 0.00895, 1.23e^{-4}]$
$\small [0.247, 0.531, 0.2, 0.0211, 7.0e^{-4}, 3.97e^{-6}]$
$\small [0.237, 0.476, 0.242, 0.0429, 0.00235, 4.28e^{-5}, 1.04e^{-7}]$
$\small [0.231, 0.433, 0.262, 0.0679, 0.0065, 2.02e^{-4}, 2.15e^{-6}, 2.29e^{-9}]$
$\small [0.221, 0.406, 0.268, 0.0911, 0.0134, 7.56e^{-4}, 1.42e^{-5}, 9.19e^{-8}, 4.35e^{-11}]$
$\small [0.206, 0.393, 0.266, 0.11, 0.0223, 0.00202, 7.11e^{-5}, 8.43e^{-7}, 3.41e^{-9}, 7.26e^{-13}]$
$\small [0.189, 0.386, 0.264, 0.125, 0.0324, 0.00417, 2.45e^{-4}, 5.62e^{-6}, 4.36e^{-8}, 1.12e^{-10}, 1.08e^{-14}]$
$\small [0.172, 0.38, 0.262, 0.135, 0.0427, 0.00726, 6.25e^{-4}, 2.49e^{-5}, 3.83e^{-7}, 2.0e^{-9}, 3.28e^{-12}, 1.45e^{-16}]$
$\small [0.158, 0.372, 0.263, 0.143, 0.0523, 0.0112, 0.0013, 7.82e^{-5}, 2.17e^{-6}, 2.29e^{-8}, 8.27e^{-11}, 8.71e^{-14}, 1.76e^{-18}]$
$\small [0.146, 0.362, 0.264, 0.149, 0.0609, 0.0157, 0.00235, 1.95e^{-4}, 8.37e^{-6}, 1.65e^{-7}, 1.22e^{-9}, 3.11e^{-12}, 2.11e^{-15}, 1.98e^{-20}]$
and for expectancies, I am getting
$0.0$
$0.5$
$0.549382716$
$0.7066770954$
$0.8693285884$
$0.9969961065$
$1.098679882$
$1.187799867$
$1.272778757$
$1.356679482$
$1.439572893$
$1.520586275$
$1.598895615$
$1.674044657$
So it seems like I am getting the same results as obtained in the comments (@ploosu2). However, I have not been able to find an asymptotic estimate other than through sheer computation (random trials, empirical mean, etc.)