How many paths of length K are there between A and B? (2021)