[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
I need help please. I'm trying to find a formula that would

You are currently reading a thread in /sci/ - Science & Math

Thread replies: 2
Thread images: 1
File: Altamura-Man.jpg (169 KB, 1109x734) Image search: [Google]
Altamura-Man.jpg
169 KB, 1109x734
I need help please. I'm trying to find a formula that would generate all possible combinations of 5 numbers that range from 0 to 6 and add up to 16 or 17. For example 0+3+3+4+6=16 or 1+2+3+5+6=17. Then I need all numbers from 0 to 9 that when added equal 18 and 28. for example, 0+0+0+9+9=18 or 5+0+9+5+9=28 Thank you in advance
>>
>>7798740
create a dataset from 0 to 99999.
create variables for each digit.
apply tests to drop all those that do not satisfy your conditions.
It's not that efficient but that's easy.
You can even do that in excel.
Thread replies: 2
Thread images: 1

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK