#PnC Hit/Trial Alternative

1 messages · Page 1 of 1 (latest)

lucid moon
#

is there a better way to do this other than putting in indivisual values of n1 n2 n3 n4 n5 and tediously finding all 💀

halcyon windBOT
#

<@&1227988399579730072>

#
Note for OP

+solved @user1 @user2... to close the thread when your doubt is solved. Mention the users who helped you solve the doubt. This will be added to their stats.

lucid moon
#

DUDE I WAS LEGIT ABoUT To PING YOUU

weak salmon
lucid moon
#

oh damn

weak salmon
#

Ok, first just find number of integral solutions using the formula. Then, exclude all solutions where a number is repeated because strict inequality, then, divide by five because we need only the ascending order solutions.

#

For repeated solutions, the largest one will be 4,4,4,4,4
So you just need to check how many permutations you have with 2 of 1,2,3,4, with 3 of 1,2,3,4 and with 4 of 1,2,3

#

Tedious but not impossible

#

That's my method. @spice scroll might have a better one.

lucid moon
hollow heraldBOT
weak salmon
#

Oops

lucid moon
#

that was for multiples as far as i remember one sec

weak salmon
#

Grouping ka formula.

lucid moon
#

yea i dont think i know that where can i learn that

junior gate
hard cairn
#

strict inequality nikalne ke liye we used to add 1 to each number, if i remember right

weak salmon
hard cairn
#

ohh ok

lucid moon
#

ok so isko apply kaise karenge idhar

junior gate
# lucid moon how-

let's take a simpler problem n1+n2+n3 =7 (n1<n2<n3) 1 2 4 is a solution and there is only one way to arrange it such that n1<n2<n3

lucid moon
#

ok goteem

spice scroll
lucid moon
#

Unable to make out more than these I need 2 more

spice scroll
#

1,2,3,4,10
" " " 5,9
" " " 6,8
1,2,4,5,8
" " " 6,7
1,3,4,5,7
2,3,4,5,6

#

As far as I could count.

lucid moon
#

1,2,4,5,8
" " " 6,7
i was missing these two thanks

#

dude these questions can be 🗿 if you can think of all cases or really leave you 🤡 if you miss cases

#

anyways

#

thanks

#

+solved @junior gate @spice scroll