Periods of β-expansions and linear recurrent sequences