Montana constitution
Article V: the legislature
Section 4

A candidate for the legislature shall be a resident of the state for at least one year next preceding the general election. For six months next preceding the general election, he shall be a resident of the county if it contains one or more districts or of the district if it contains all or parts of more than one county.