Problem

Source:

Tags: Comc



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