[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_20231218_171209.jpg (2.83 MB, 3072x4080)
2.83 MB
2.83 MB JPG
saw this math problem and couldnt figure it out:(im a fucking retard)

how many combinations of 12345 that make up single positive integers
are there, counting only the combinations where the 1 is left of 2

(like 12'345 and 15'234 and so on)

i guess you find out how many total combinations are there starting with 1, then take out all the combinations starting with 2 and then the hard part is calculating the rest? i cant find anything online desu

pic related im taking a massive shit
>>
Since 2 can only appear to the right of 1, I simply took all of 1's positions and saw how many places 2 could be to the right of 1. The Xs represent the places that 2 cannot occupy and the checks represent the places it can
>>
File: WallpaperDog-20533040.jpg (232 KB, 1920x1270)
232 KB
232 KB JPG
>>1457008
I think this logic is incorrect. For example, on the 3rd row, just because the 2 can be in the 4th position or the 5th position doesn't mean there's only two possibilities. There's more. For example, 54123, 45123, 34125, 43125, etc. There's two possibilities for the position of the 2, but more possibilities for the rearranging of other numbers you're not counting.

My immediate instinct is that the answer is 60. There's 120 total number combinations, and since 1 and 2 appear equally in all positions, 1 will be in front of 2 half the time, and 2 will be in front of 1 half the time. Therefore half of them will be invalid.
>>
>>1457010
Yes, 5!/2 = 3*4*5
>>
there are 10 different positions for 1 & 2 based on that rule (you can count them)
each one leaves 3 slots for the remaining 3 numbers in any order, so 3 x 2 x 1 = 6 possible arrangements for those

so 10 x 6 or 60 total arrangements

you can use the following python code to print out all of them and confirm there are 60:
[code]
import itertools;
perms = [x for x in itertools.permutations([1,2,3,4,5]) if x.index(1) < x.index(2)]
print(f"There are {len(perms)} permutations:")
[print(x) for x in perms]
[/code]



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.