Question 19
A positive integer $n$ not exceeding $100$ is chosen in such a way that if $n\le50,$ then the probability of choosing $n$ is $p,$ and if $n\gt50,$ then the probability of choosing $n$ is $3p.$ The probability that a perfect square is chosen is