← Goldman Sachs questions

Number of ways to express N as sum of consecutive integers

Filed under Goldman Sachs

Given a large positive integer N (where N < 10^12), calculate the number of ways N can be written as the sum of two or more consecutive positive integers.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.