interesting...
What would be the formula if we don't want indetnation but instead a flatten version like this :
a>b>k1>c1 a>b>k1>k3 a>b>k1>k4 a>b>k2 a>c>d e