Problem 2778 · Easy

Sum of Squares of Special Elements

Sum the squares of the 1-indexed elements whose position divides the array length.

Open the interactive visualisation