Idempotent operators on a finite chain