Hi,Don't know if this is useful but if you just look at the rightmost digit of each invoice then can only be 0 to 9 .The sum of a valid combination of these must add to rightmost digit of wanted total
3 end in 0
3 end in 1
9 end in 2
6 end in 3
5 end in 4
5 end in 5
2 end in 6
8 end in 7
8 end in 8
5 end in 9
Taking invoices that end in 2 as example this will generate 0,2,4,6 or 8 as last digit dependant upon how many are in total .Doing same for other final digits gives different patterns and combining all possibilities gives final number of combinations of just over 1 x 10^6
This could be done by brute force
Hope this is understandable and hope it helps
Big bob
3 end in 0
3 end in 1
9 end in 2
6 end in 3
5 end in 4
5 end in 5
2 end in 6
8 end in 7
8 end in 8
5 end in 9
Taking invoices that end in 2 as example this will generate 0,2,4,6 or 8 as last digit dependant upon how many are in total .Doing same for other final digits gives different patterns and combining all possibilities gives final number of combinations of just over 1 x 10^6
This could be done by brute force
Hope this is understandable and hope it helps
Big bob