Modern Science is divided into three major branches:
$1.$ Natural Sciences (Includes Physics, Chemistry and Biology) Which studies nature in its broadest sense.
$2.$ Social Sciences (Includes Economics, Sociology and Biology) Which study Individual and societies.
$3.$ Formal Sciences (Includes logic, Mathematics and Theoretical computer science) Which study abstract concepts.
There is disagreement, however on whether the formal sciences actually constitute a science as they do not rely on empirical evidence (i.e. Information received by means of senses, particularly by observation and documentation of patterns and behaviour through experimentation)
My question is what is the reason for saying that mathematics does not constitute science even if use experimental approach so often in mathematics also?
In words of Paul Halmos When you try a theorem, you don’t just list the hypothesis and then start to reason. What you do is trial and error, experimentation and guesswork. You want to find out what the facts are and what you do is in that respect similar to what a laboratory technician does. In fact there are so many evidences that mathematics is as experimental as other sciences. For instance consider
$\color{purple}{n^2+n+41\ is \ a \ prime \ number\ for \ all \ natural \ numbers}$.
We check this for natural numbers and find out that it is true for numbers $1-39$ but fails at n=40 so this result is not true. Same way we see that $\color{navy}{F_n=2^{2^n}+1 \ is \ prime \ for \ n=1,2,3,4}$ but not afterwards.
One reason I can think is experimental mathematics is relatively newer and we haven’t accepted its importance .
Other reason can be that in other sciences you take some observations to support, refute or validate a hypothesis but in Mathematics your result might come out to be false after so many positive observations or sometimes you cannot prove/get close to validity of result even after so many observations. Like in given examples:
$\color{brown}{a.} \ \ (n^{17}+9,(n+1)^{17}+9)=1$
(First counter example is $n=84244329255928893292881973223089006724459420460792433$) A physicist would be convinced by experimenting even less than $33$ times :)
$\color{blue}{b.}$ Smallest value of $n$ for which $f(n)=991n^2+1$ is perfect square is $n=12055735790331359447442538767$
$\color{red}{c.} \ \ 1000099n^2+1$ is perfect square for first number having $1116$ digits
I might be wrong in some places so please mention if you find any.
References: Wikipedia articles ( Experimental mathematics, Science)
While experiments play an important role in mathematics, it's not the same as the role they play in the experimental sciences. In the latter experimentation is truly indispensable; in the former, it is instead a source of inspiration, with the actual "finished product" being a mathematical proof which could in principle have been discovered "ex nihilo."
Of course, mathematics isn't actually done without experimentation in practice. This is especially true if we construe the word "experiment" to include proof attempts, which I would argue we should: often the intuition for a proof of one theorem comes from the difficulties one hits in trying to prove the opposite. But this is a fact about practice as opposed to nature; a computer can search blindly for a proof of a given sentence and the validity of such a proof (if discovered after all) is independent of the fact that there was no experimentation employed in its discovery. (Ignore for a moment the fact that this blind proof search is infeasibly time-consuming; again, that's not the point here.)
So the question comes down to this:
I - and I think many others - would argue that it's not enough for experimentation to be important in practice; rather, to genuinely be an experimental science, a subject must take experimentation to be of central importance. If we accept this, then mathematics is not an experimental science since the centrally important objects are mathematical proofs rather than mathematical experiments.