The yearly fractions
The denominator is the sum of the life's digits: for n years, 1 + 2 + ... + n = n(n+1)/2. Each year's fraction is the remaining life over that sum, so a 5-year asset takes 5/15, 4/15, 3/15, 2/15, then 1/15. Every fraction multiplies cost minus salvage, and because the fractions add to exactly 1, total depreciation always lands on the depreciable base.