I would like some hints about how solve this kind of problems. I am not asking a detailed solution, just how the problem is classified (if it is) and what part of math I should take a look.
Given positive integer $n$ and $s$, we want to construct a sequence of positive integers $a_1 > a_2 \ge a_3 \ge ...\ge a_n$ such that their sum is $s$. Note that we require that the maximum, $a_1$, is unique, while other values can have duplicates.
Problem: What is the minimum value of $a_1$? Let this minimum be $f(n,s)$.
Example: if $n=10$ integers and $s=100$, I can find by eye this: $11, 10, 10, 10, 10, 10, 10, 10, 10, 9$. So the answer is $f(10,100)=11$.
It's easy, but in general? I imagine some method exists. I do not need it explained here, I want just know where to look (what to look) to solve this kind of problems.
I think it is probably some sort of optimization problem, but more precise details are welcome.
(this is not homework or job related or anything, in case it is necessary specify it)