I assume n is the number of people in the room.....
Although I got the solution, in the case of n=100, however, it results in 1.000, which means there MUST be at least two people share their birthday in a group of 100. Am I missing something here?
Determine if a Given Number is a Triangle Number
326 Solvers
Back to basics 6 - Column Vector
914 Solvers
Flip the main diagonal of a matrix
511 Solvers
426 Solvers
07 - Common functions and indexing 6
363 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!