How to find all combos with sum of 10

It’s not a part of a game or anything, while I was at the ATM I though of this. Numpads, calculators etc have number 0-9 keys, wonder how many combos there are, then a bit later…

…combos with numbers only used once…then a bit later…

hmmm…what if…since its 10 keys/numbers, shuffle/add so the sum is 10 then things kinda evolved and now its a bit out of hand…

TOO BIG OF A TASK… :wacko:

…perhaps… :slight_smile:

And now…OMG, there gotta be some kind of math formula for this…

there is, but you’ll get better “hits” if you drop the term “combo” (combination) and adopt the term “permutation”

fe:  atm, 4 of 10, unordered w repetition, simple case:  10*10*10*10

fe:  lotto:  5 of 49, unordered no repetition, 49*48*47*46*45

and so on…

use “combination” only for cases where order doesn’t mater (fe 1234 same as 4321, but differs from 1235,5321)

that’ll help you get the math geeks on the right track  :D

hth

“permutation”…check!