Here's my analysis. I'm new here, and mathematics is more of a hobby for me. Still, this seems like a good place to start.
We're going for equality, so let's start with
$$16a\sqrt{\frac{\ln(b/c)}{p}}+\frac{1}{16} = \frac{1}{4}$$
subtract $1/16$ from each side to arrive at
$$16a\sqrt{\frac{\ln(b/c)}{p}} = \frac{3}{16}$$
square both sides to obtain the next equality. (Note that I'm not sure about this part of the whole business. You have stated that $a$, $b$, and $c$ are positive integers, but we don't know how $b$ and $c$ relate. For example, is $b < c$, or more importantly is $(b/c) \lt e$ ? Note that, having a background in physics, I've denoted $e$ as the base of $\ln$ , but considering you're working on an algorithm, I imagine your $e = 2$ and not necessarily Euler's constant.)
$$16^2 a^2 \frac{\ln{(b/c)}}{p} = \frac{9}{16^2}$$
Divide and multiply to get $p$ by itself, and you end up with
$$p = \frac{16^4 a^2 \ln{(b/c)}}{9}$$
I realize that it's very probable that this is a naïve answer, with the concerns about a negative radicand that I stated and concerns about $p$ being a function of $a$, $b$, and $c$, but you said
any answer is appreciated
so I figured I'd give it a shot.
Please comment on anything about my answer, no matter how wrong or naïve my thoughts might be. Rip it all to pieces - that will help me learn.