Count the ways to write a given positive integer as a sum of at least two consecutive positive integers (for 21 the answer is 3, for 250 it is 3).
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Write a program that outputs the first n Ramanujan numbers: integers that are a sum of two positive cubes in at least two different ways, such as 1729.Given A and B (1 <= A <= B <= 10^9), count the positive integers X with A <= X*(X+1) <= B.You choose 6 numbers at random from the first 35 positive integers. What is the expected number of consecutive pairs among them? (10, 11 and 12 would count as two pairs.)Related courses

Course

