LGBARIDDLE How many unique integer solutions exist for a + b + c = 5 such that (a, b and c) \(\ge\) 0
an infinite number
no. it's finite
example: 1.9+1.1+2 1.99+1.01+2
1.999+1.001+2
these are just the ones im getting with 1.9.., 1.0...1, and 2
unless you specify that a, b and c are integers
uhh yeah they are integers
SEEE, ok now my solution doesn't work :/
a+b=5-c c has to be less than or equal to 5, since a+b cannot be negative.. so now list all the choices: c=0, a+b=5 c=1, a+b=4 c=2, a+b=3 c=3, a+b=2 c=4, a+b=1 c=5, a+b=0... now expanding on this...
c=0: a=0, b=5 a=1, b=4 a=2, b=3 a=3, b=2 a=4, b=1 a=5, b=0
c=1: a=0, b=4 a=1, b=3 a=2, b=2 a=3, b=1 a=4, b=0
wow brute force
6+5+4+3+2+1
11+7+3=11+10=21?
Brute force is my fave method.. I am a gorilla after all!
21 sets of numbers for a, b, and c. If a=0, then 6 sets for b and c (0,5 and 1,4 and 2,3 and 3,2 and 4,1 and 5,0). If a=1, then 5 sets for b and c (0,4 and 1,3 and 2,2 and 3,1 and 4,0), etc., until you get to a=5, and then there is only the set of 0,0 for b and c. Adding 6 + 5 + 4 + 3 + 2 + 1 = 21.
Join our real-time social learning platform and learn together with your friends!