Text this: An algorithm for the numbers of endomorphisms on paths (DM13208)

  ______     ___       _____   __   __   _    _   
 /_   _//   / _ \\    / ___//  \ \\/ // | \  / || 
 `-| |,-   / //\ \\   \___ \\   \ ` //  |  \/  || 
   | ||   |  ___  ||  /    //    | ||   | .  . || 
   |_||   |_||  |_|| /____//     |_||   |_|\/|_|| 
   `-`'   `-`   `-` `-----`      `-`'   `-`  `-`