I have the number 23 which was created by the sum of numbers 16,4,2,1. In the same way the number can be 19 (created by sum of 16,2,1)
What I am looking is to find a way to extract from which integers my number was created. e.g for the above example of 23 I want to get back an array of 16,4,2,1.
How can I do that using c#?