Statistical mechanics of polyacetylene (CH)x