Problems(1)
Let n be a positive integer, and let f(n) denote the last nonzero digit in the decimal expansion of n!.(a) Show that if a1,a2,…,ak are distinct nonnegative integers, then f(5a1+5a2+…+5ak) depends only on the sum a1+a2+…+ak.
(b) Assuming part (a), we can define
g(s)=f(5a1+5a2+…+5ak),where s=a1+a2+…+ak. Find the least positive integer p for which
g(s)=g(s+p),for all s≥1,or show that no such p exists. number theorySequences