"It is well known that a cohomology class can be uniquely expressed by a harmonic form. To show that a certain cohomology group vanishes, it is equivalent to show that every harmonic form form that cohomology group is identically zero."
http://mathoverflow.net/a/212214
Very cool