Doubt in SUMARRAY problem

Can we have duplicate numbers in the solution?
For e.g.:-
n = 10 , k = 21
Can I have a solution like 2 2 2 2 2 1 1 1 1 7?