|
-
March 1st, 2016, 02:50 AM
#13
Re: How to distribute a value into vector
 Originally Posted by tiliavirga
Have you noticed my post #11?
Say we have V=3 (slots) and D= 17 (sum).
Just use V=3 and D=D-V = 17-3 = 14. Then run Gosper's hack with those values and add 1 to each number in every output combination, like,
Yes i noticed but in my latest #post 14 i need some change in the code
Now I only need 1 between 9 value in one row and total row equal = sum if we do this we can save time
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|