Qontigo interview question

How do dividends affect index calculations?