bonjour besoin d aide s'il-vous-plaît

Bonjour,
1)
1-> 2
1-> 3
2-> 1
2 ->2
2 -> 3
3 -> 1
3 -> 2
7 possibilités
2)
1-> 3
2 ->2
3 -> 1
3/7 pour avoir 4