Step 1: The canonical transformation is given by the relations:
\[
Q = \frac{1}{p}, \quad P = q p^2.
\]
The generating function \( F \) satisfies the following relations:
\[
\frac{\partial F}{\partial q} = P, \quad \frac{\partial F}{\partial p} = -Q.
\]
Step 2: For \( F_1(q, Q) \), we choose the generating function such that:
\[
\frac{\partial F_1}{\partial q} = P = \frac{q}{Q}.
\]
This satisfies the relation, and thus:
\[
F_1(q, Q) = \frac{q}{Q}.
\]
Step 3: For \( F_4(p, P) \), we need to satisfy:
\[
\frac{\partial F_4}{\partial p} = -Q \quad \Rightarrow \quad F_4(p, P) = \frac{P}{p}.
\]