Extending results of Grushin we
determine the index of p(x,D) where p(x,ξ) is a polynomial homogeneous with
respect to some family of dilations on R2d and p(x,ξ)≠0 if (x,ξ)≠(0,0). In general
these operators are not elliptic. If G is a step two nilpotent Lie group and P is a left
invariant differential operator on G which is homogeneous with respect to
some family of dilations, we apply this index theorem to prove that P is
hypoelliptic if and only if P∗ is hypoelliptic. This extends a result of Helffer and
Nourrigat.