Count Arithmetic Progressions having sum N and common difference equal to 1
Given an integer N, the task is to count all arithmetic progression with common difference equal to 1 and the sum of all its elements equal to N. Examples: Input: N = 12Output: 3Explanation: Following three APs satisfy the required conditions: {3, 4, 5}{â2, â1, 0, 1, 2, 3, 4, 5}{â11, â10, â9, â¦, 10,