The Turán number of the square of a path