[math-fun] periodic (-1,0,1) matrices