Touba M. answered 11/24/21
B.S. in Pure Math with 20+ Years Teaching/Tutoring Experience
Hi,
first of all you know 215 is all permutation
you don need some part such as:
String with no ones = 15!/(0!(15 - 0!)) = 1
String with no zeros = 15!/(0!(15 - 0!)) = 1
String with one one = 15!/1!(15 - 1!)=15
Strings with one zero = 15!/1!(15 - 1!)=15
Strings with two ones = 15!/2!(15 - 2!)=105
Strings with two zeros= 15!/2!(15 - 2!)=105
215 - 1 - 1 - 15 - 15 - 105 - 105 = 32526 the number of strings.
I hope it is useful,
Minoo