embed within O(nlogn) sum
Source: STEMS 2021 CS Cat A Q3
January 23, 2021
combinatorics
Problem Statement
A positive sequence is a finite sequence of positive integers. Sum of a sequence is the sum of all the elements in the sequence. We say that a sequence can be embedded into another sequence , if there exists a strictly increasing function such that , where denotes the length of
a sequence . For example, can be embedded in , but can not be in \\
Given a positive integer , construct a positive sequence with sum , such that all the positive sequences with sum , can be embedded into .\\