Linear Recurring Sequences Over Rings And Modules