For any positive integer number k, the factorial k! is defined as a product of all integers between 1 and k inclusive: k!=k×(k−1)×⋯×1.
Let s(n) denote the sum of the first n factorials, i.e.
s(n)=n!n×(n−1)×⋯×1+(n−1)!(n−1)×(n−2)×⋯×1+⋯+2!2×1+1!1
Find the remainder when s(2024) is divided by 8