MathDB
nice combinatorics problem

Source: KGZ national 2016 2-problem

May 10, 2016
combinatorics

Problem Statement

The number NN consists only 2s2's and 1s1's in its decimal representation.We know that,after deleting digits from N,we can get any number consisting 99999999- 1s1's and oneone - 2s2's in its decimal representation.Find the least number of digits in the decimal representation of N