Why F(p) can be atmost 1023?Please explain

I constructed the recursive function,but couldn’t go about doing the same for dp. I need help for constructing the right function.

You should clarify about the recursive function and F§ you are talking about!

what does F( p ) do ? factorial ?