Citadel OA | Consecutive Sum | Citadel Online Assessment Question

Given a long integer, find the number of ways to represent it as a sum of two or more consecutive positive integers.


This is a companion discussion topic for the original entry at https://algo.monster/problems/citadel-oa-consecutive-sum/