|
|||
Percentage
Péter has red and white balls. He selects and of them, respectively. We know that for a , and for a non-negative number , with and , the probability of drawing exactly red balls in draws without replacement is: Péter noticed that this value sometimes corresponds exactly to , where is an integer, meaning, for example, . He wants to know, for a given , which whole percentage values can be calculated exactly as probabilities in this way if he considers all possible combinations of . According to Peter, concepts like impossible or absolutely certain don’t exist, so he’s only interested in whole percentage values between and . Let’s help him find the answer!Input specificationA single line with number . Output specificationThe list of achievable percentage values between and , inclusive, for the given , sorted in ascending order. Separate the numbers with spaces. Constraints
Sample input 1
Sample output 1
Sample input 2
Sample output 2
Sample input 3
Sample output 3
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |