Nov-11-2019, 10:24 PM
Take the imaginary word
You can repeat this procedure as long as there are characters that appear the same number of times.
"pneumonaoultramicroscoapicsailaicovolcanoconiosillls"
. In this word, the letters a, l, c, i
appear 6 times. Let R be the resulting word after you have removed the necessary characters. In this resulting word, the letters a, l, c, i appear at most 6 times and each a different number of times. It doesn't matter which of these 4 characters appears more or less than another because it doesn't change the count of removed characters if we choose to remove 3 a's or 3 i's. So we can as well suppose that we need to remove at least 1 l, 2 c's and 3 i's.You can repeat this procedure as long as there are characters that appear the same number of times.