#MATL, 22 26 bytes
MATL, 22 26 bytes
1tiXIX"i:XK"tPI:)sh]K)
This uses current release (10.2.1) of the language/compiler.
A few extra bytes :-( due to a bug in the G function (paste input; now corrected for next release)
###Explanation
Explanation
1tiXIX" % input N. Copy to clipboard I. Build row array of N ones
i:XK % input X. Build row array [1,2,...X]. Copy to clipboard I
" % for loop: repeat X times. Consumes array [1,2,...X]
t % duplicate (initially array of N ones)
PI:) % flip array and take first N elements
sh % compute sum and append to array
] % end
K) % take the first X elements of array. Implicitly display