List the tuples in the relation a b c a b and c are positive

List the tuples in the relation {(a, b, c): a, b, and c are positive integers and 0 < a < b < c < 5}.

Solution

given that a, b, and c are positive integers so all of them must be greater than 0

since all of them are less than 5 so max value of possible integer is 4

so c=4

given that b < c then b=3

given that a < b then b=2

so tuple is (2,3,4)

-------------

take c=4, b=3 then a=1

so tuple is (1,3,4)

-------------

now take c=3 then b=2 then a=1

so tuple is (1,2,3)

--------------

thee are only three combinations possible for given conditions so final answer is

(1,2,3), (1,3,4), (2,3,4)

List the tuples in the relation {(a, b, c): a, b, and c are positive integers and 0 < a < b < c < 5}.Solutiongiven that a, b, and c are positive int

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site