Let the sequence $u_n$ be defined by $u_0=0$ and $u_{2n}=u_n$, $u_{2n+1}=1-u_n$ for each $n\in\mathbb N_0$.
(a) Calculate $u_{1990}$.
(b) Find the number of indices $n\le1990$ for which $u_n=0$.
(c) Let $p$ be a natural number and $N=(2^p-1)^2$. Find $u_N$.