i think you are right.
I have got the recursive functions as well as the direct functions in two specific cases: n=1 and n=m-1. I will post the result soon after checking correctness.
But the direct functions in general case have not been found yet.