We develop a method to construct algebraic invariants for hypermatrices. We
then construct hyperdeterminants and exhibit a generalization of the
Cayley-Hamilton theorem for hypermatrices.Comment: 65 pages. Several results expanded. Title changed to better reflect
the content and agree with published preprint versio