Algorithm: Calculate every number in a given list using addition and numbers you've created
You're looking for an algorithm to generate an addition chain that includes each of the specified numbers.  As Wikipedia explains, the problem is NP-complete in general.  However, there are approximation algorithms and heuristics.  Searching for algorithms for computing addition chains should give you some candidate methods.