Better Experience Download iQuanta App

Google PlayApp Store
Performer
10d
#Doubt Responded

qa 250

<p>Please give a detail solution for this</p>

Comments2

Superman - iQuanta

Superman - iQuanta

Start with 10C3 = 120 total ways to pick 3 lengths. A triple (a, b, c) with a < b < c fails the triangle inequality when a + b ≤ c. Count these by fixing a. a = 1: need 1 + b ≤ c, so c >= b+1. b goes 2 to 9, giving 8+7+...+1 = 36 invalid triples. a = 2: need 2 + b ≤ c. b goes 3 to 8, giving 6+5+4+3+2+1 = 21. a = 3: b goes 4 to 7, giving 4+3+2+1 = 10. a = 4: b goes 5 to 6, giving 2+1 = 3. a >= 5: smallest possible invalid needs c >= 11, impossible. So invalid = 36 + 21 + 10 + 3 = 70. 120 - 70 = 50 50

Piyanshu

Piyanshu

Thank You

Log in to join the discussion.