Skip to main content
OlympiadHQ

Browse · MathNet

Print

FINAL ROUND

Belarus number theory

Problem

A sequence is called N-nice if it consists of a finite number of the consecutive positive integers and the sum of all its terms is equal to . Find the total number of all -nice sequences, where is a positive integer. (N-nice sequence may consist of a single term.)
Solution
Let be the number of -nice sequences, be the number of odd divisors of . Then (see the solution of Problem C.7). Since , we see that the number of the required -nice sequences is equal to .
Final answer
(k+1)^3

Techniques

Factorization techniquesRecursion, bijection