Minimal number of generators of a homogeneous ideal (exercise in Hartshorne) In the very first chapter Hartshorne proposes the following seemingly trivial exercise (ex. I.2.17(ii)):

Show that a strict complete intersection is a set theoretic complete intersection.

Here are Hartshorne's definitions:

A variety $Y$ of dimension $r$ in $\mathbb{P}^n$ is a (strict) complete intersection if $I(Y)$ can be generated by $n-r$ elements. $Y$ is a set-theoretic complete intersection if $Y$ can be written as the intersection of $n-r$ hypersurfaces.

Here $I(Y)$ is the homogeneous ideal of $Y$. The point is that the first definition seems wrong, since one would naturally require that $I(Y)$ can be generated by $n-r$ homogeneous elements (with this definition the exercise becomes trivial).
I have never made my mind if this is a misprint by Hartshorne. So the question is

Is it true that in a polynomial ring any homogeneous ideal generated by $k$ elements is also generated by $k$ homogeneous elements?

If I recall well it is not difficult to find counterexamples in graded rings which are not polynomial rings, so the point of the exercise may be to show that polynomial rings have this special property.
 A: Dear Andrea: Hartshorne was right, but we need to do some work. Let $\mu(I)$ be the minimal number of generators of $I$, and $\mu_h(I)$ be the minimal number of a homogenous system of generators of $I$. Let $R=k[x_1,\dots,x_n]$ and $\mathfrak m=(x_1,\dots,x_n)$. Suppose $\mu_h(I)=m$ and $f_1,\dots, f_m$ is a minimal homogenous set of generators. At this point we switch to the local ring $A=R_{\mathfrak m}$ (the reason: it is easier to do linear algebra over local rings, as anything not in $\mathfrak m$ is now invertible). It will not affect anything since $I\subset\mathfrak m$.
Construct a surjective map $F_0 = \bigoplus_{i=1}^m A(-\deg \ f_i) \to I \to 0$ and let $K$ be the kernel. We claim that  $K \subset\mathfrak mF_0$. If not, then one can find an element $(a_1,...,a_m) \in K$ such that $\sum a_if_i=0$ and $a_1$, say, has a degree $0$ term $u_1\neq 0$. By considering terms of same degree in the sum  one sees that there are $b_i$s such that:$$u_1f_1 = \sum_{i=2}^m b_if_i$$
so the system is not minimal, as $u_1 \in k$, contradiction.
Now tensoring the sequence $$ 0 \to K \to F_0 \to I \to 0$$ with $k=A/\mathfrak m$. By the claim $K\subset\mathfrak mF_0$, so $F\otimes k \cong I\otimes k$. It follows that  $m= \operatorname{rank} F_0 = \dim_k(I\otimes k)$. But over a local ring, the last term is exactly $\mu(I)$, and we are done.
