2020 AIME II Problem 8

Define a sequence of functions recursively by f_{1}(x)=|x-1| and f_{n}(x)=f_{n-1}(|x-n|) for integers n>1. Find the least value of n such that the sum of the zeros of f_{n} exceeds 500,000 .