When the polynomial $P(x)=4x^3+px^2+qx+1$ is divided by $x-1$, the remainder is -2. When $P(x)$ is divided by $(2x-1)$, the remainder is $\frac{13}{4}$.
Result of first division seems to be $4x^2+(p+4)x+(p+4+q)+\frac{p+4+q+1}{x-1}$, the second one gives $2x^2+\frac{2+p}{2}x+\frac{1+p+q}{2}+\frac{\frac{1+p+q}{2}}{2x-1}$.
So I have two equations, $p+4+q+1=-2$ and $\frac{1+p+q}{2}=\frac{13}{4}$. But this doesn't make any sense. If I try to put $p$ from the first one to the second one, I get $-3=\frac{13}{4}$...
I tried to do the divisions three times and I don't think there is a mistake, so do you have any idea where the problem might be?
I think you made a mistake in your second division.
First step: $$ (4x^3 + px^2 + qx + 1)/(2x - 1) = 2x^2 + ((p + 2)x^2 + qx + 1)/(2x - 1) $$
Second step: $$ ((p + 2)x^2 + qx + 1)/(2x - 1) = \frac{p + 2}{2}x + ((q + \frac{p + 2}{2})x + 1)/(2x - 1) $$
And $q + \frac{p + 2}{2} = \frac{p + 2q + 2}{2}$
Note the $2$ in front of $q$.
So you end up with two equations: $$ p + q = -7 \\ p + 2q = 7 $$
And from here the problem is solvable ($p = -21$, $q = 14$).