← Complete problem index

PROJECT EULER · #0834

Add and Divide

Statement only · SolvedOriginal problem ↗

A sequence is created by starting with a positive integer n and incrementing by (n+m) at the mth step. If n=10, the resulting sequence will be 21,33,46,60,75,91,108,126,.

Let S(n) be the set of indices m, for which the mth term in the sequence is divisible by (n+m).
For example, S(10)={5,8,20,35,80}.

Define T(n) to be the sum of the indices in S(n). For example, T(10)=148 and T(102)=21828.

Let U(N)=n=3NT(n). You are given, U(102)=612572.

Find U(1234567).

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.