Majority Logic: Prime Implicants and n-Input Majority Term Equivalence