simplify solution to num_repeats
rename total-duplicates to num-repeats