This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $x\left[\frac kx\right]\to k$ as $x\to0^+$, so the first part tends to $\frac{p(p+1)}2$. $x^2\left[\frac{k^2}{x^2}\right]\to k^2$, so the second part tends to $\sum_{k=1}^9k^2=285$. The condition is $\frac{p(p+1)}2-285\ge1\Rightarrow p(p+1)\ge572$. $p=23$ gives $552$; $p=24$ gives $600$. So $p=24$. Answer: 24.