All Questions
1 question
1
vote
1
answer
531
views
Split sum into equal terms
Given a sum of $l$ integers $r_1+...+r_k+...+r_l$ and an integer $t$.
Find indices
$1 < p_1 <...< p_h <...< p_{t-1} < l$
such that in sum
$(r_1+...+r_{p_1})+...+(r_{p_{h-1}+1}+......