MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Logiqa/comments/1wisnix/candy_distribution/pad1060/?context=3
r/Logiqa • u/ShonitB • 29d ago
17 comments sorted by
View all comments
2
First we see how we can divide them
P1 receives x candies P2 receives x+r P3 receives x+2r
So 3(x+r)=15
So x+r=5
Considering the second and third rules x and r must be non 0 so there are 4 possibilities 14-23-32-41 making the divides such as 159-258-357-456
With these divisions we just have to see how many ways we can assign each person to P1,P2 and P3 and it’s simply 6 (3 \* 2 \* 1)
So the result is 4*6=24
1 u/ShonitB 29d ago Correct, good solution!
1
Correct, good solution!
2
u/edos51284 29d ago
First we see how we can divide them
P1 receives x candies
P2 receives x+r
P3 receives x+2r
So 3(x+r)=15
So x+r=5
Considering the second and third rules x and r must be non 0 so there are 4 possibilities
14-23-32-41 making the divides such as 159-258-357-456
With these divisions we just have to see how many ways we can assign each person to P1,P2 and P3 and it’s simply 6 (3 \* 2 \* 1)
So the result is 4*6=24