This is a problem from the 2000 Olymon (the Mathematics Olympiads Correspondence Program) for secondary students sponsored jointly by the Canadian Mathematical Society and the Mathematics Department of the University of Toronto.
Find the value of S.”
See Astronomical Sum for solutions.