I am having trouble specifying the transfer function of the following system as seen below:
From the initial view I work out the difference equation to be:
$$ y(n) = x(n) - p^Nx(n-N) +py(n-1) $$
However should the constant before y(n-1) be negative p according to the following standardised equation for a difference equation?
\begin{align} y(n)=b_0 x(n)+&b_1 x(n-1)+\cdots+b_M x(n-M)\\ -&a_1 y(n-1)-\cdots-a_N y(n-N) \end{align}
Furthermore I am trying to work out the impulse response and it is required that the first $N$ values ($n=0,1,2,\ldots,N-1$) of the impulse response of the filter are defined as: $$ h(n) = p^2 $$
I cannot get this to work from my current workings but feel it may be related to the first problem.
Thanks for taking the time to read my problem and any help would be greatly appreciated!