• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:55
CET 19:55
KST 03:55
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
HomeStory Cup 28 - Info & Preview12Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8
Community News
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win2RSL Season 4 announced for March-April7Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8
StarCraft 2
General
StarCraft 2 Not at the Esports World Cup 2026 Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win HomeStory Cup 28 - Info & Preview Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win Oliveira Would Have Returned If EWC Continued
Tourneys
RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) HomeStory Cup 28 StarCraft Evolution League (SC Evo Biweekly) $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)
Strategy
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 511 Temple of Rebirth The PondCast: SC2 News & Results Mutation # 510 Safety Violation Mutation # 509 Doomsday Report
Brood War
General
[ASL21] Potential Map Candidates Can someone share very abbreviated BW cliffnotes? BW General Discussion Liquipedia.net NEEDS editors for Brood War BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues Azhi's Colosseum - Season 2 Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Path of Exile Mobile Legends: Bang Bang Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Join illminati in Luanda Angola+27 60 696 7068
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread The Games Industry And ATVI Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Play, Watch, Drink: Esports …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1392 users

Ask and answer stupid questions here! - Page 737

Forum Index > General Forum
Post a Reply
Prev 1 735 736 737 738 739 783 Next
KwarK
Profile Blog Joined July 2006
United States43545 Posts
Last Edited: 2019-08-26 20:40:41
August 26 2019 20:18 GMT
#14721
Each number can be
1-5
12-15
23-25
34-35
44-45
123, 124, 125, 134, 135, 145
234, 235, 245
345
1234, 1235
1345
12345

So that’s 5+4+3+2+6+3+1+2+1+1 = 28 possibilities.
28^5= 17,210,368 combinations.
ModeratorThe angels have the phone box
DarkPlasmaBall
Profile Blog Joined March 2010
United States45258 Posts
Last Edited: 2019-08-26 20:29:02
August 26 2019 20:28 GMT
#14722
On August 27 2019 04:17 Dangermousecatdog wrote:
Show nested quote +
On August 26 2019 23:11 FiWiFaKi wrote:
How many possible combinations are in a lock that:

-Has 5 numbers, 1 through 5.
-Each number can be pressed at most once.
-Can press as many numbers as wanted simultaneously. For example pressing 2 and 4 at same time is a different combination than pressing 2 then 4, or pressing 4 then 2

Thank you.

182

EZ. You all suck. Did this in my head in under 2 min.

Pls thank me for doing your homework for you.


Unless there are additional restrictions to the original problem, 182 is too small of a total. How did you get that?
"There is nothing more satisfying than looking at a crowd of people and helping them get what I love." ~Day[9] Daily #100
Simberto
Profile Blog Joined July 2010
Germany11739 Posts
August 26 2019 20:39 GMT
#14723
I kind of already explained how to solve this above.
DarkPlasmaBall
Profile Blog Joined March 2010
United States45258 Posts
August 26 2019 20:41 GMT
#14724
On August 27 2019 05:39 Simberto wrote:
I kind of already explained how to solve this above.


Yeah, with permutations rather than combinations
"There is nothing more satisfying than looking at a crowd of people and helping them get what I love." ~Day[9] Daily #100
GreenHorizons
Profile Blog Joined April 2011
United States23621 Posts
August 26 2019 22:58 GMT
#14725
Dyscalculia or Acalculia, real or not?
"People like to look at history and think 'If that was me back then, I would have...' We're living through history, and the truth is, whatever you are doing now is probably what you would have done then" "Scratch a Liberal..."
DarkPlasmaBall
Profile Blog Joined March 2010
United States45258 Posts
Last Edited: 2019-08-26 23:34:04
August 26 2019 23:32 GMT
#14726
On August 27 2019 07:58 GreenHorizons wrote:
Dyscalculia or Acalculia, real or not?


I know from working with students with the disability that Dyscalculia is real, nuanced, and not just a generic "I'm bad at math" excuse. Some basic info on the legitimate disability: https://en.wikipedia.org/wiki/Dyscalculia
From that link: "Mathematical disabilities can occur as the result of some types of brain injury, in which case the proper term, acalculia, is to distinguish it from dyscalculia which is of innate, genetic or developmental origin."
"There is nothing more satisfying than looking at a crowd of people and helping them get what I love." ~Day[9] Daily #100
FiWiFaKi
Profile Blog Joined February 2009
Canada9859 Posts
Last Edited: 2019-08-27 02:01:15
August 27 2019 01:06 GMT
#14727
On August 27 2019 05:18 KwarK wrote:
Each number can be
1-5
12-15
23-25
34-35
44-45
123, 124, 125, 134, 135, 145
234, 235, 245
345
1234, 1235
1345
12345

So that’s 5+4+3+2+6+3+1+2+1+1 = 28 possibilities.
28^5= 17,210,368 combinations.


That's be wrong too, as you might have 28 possibilities of a number, but if you have a combined number, you don't have 5 numbers any more, for example doing 12, now you only have 3 numbers remaining.

Also, this isn't a homework problem. I was installing a mechanical lock, and accidentally changed the combination. Without opening it all up, which is a pretty complex locksmith procedure, there is no other way that brute force. So I want to guess every combination until it opens (it's legit a real life application) .

Doing the nPk thing, for

k=1, 5
k=2, 20
k=3, 60
k=4, 120
k=5, 120

So for single numbers I'm up to 325.

Now where it gets weird, let's do combined number combinations

All 2 digit numbers:

1) 5c2 = 10

All 3 digit combinations:

1) All 3 digits pressed at once would be 5c3 = 20
2) All 2 digit combinations + single, so 5c2 =10, now treat it as 2 numbers so 4p2 =12, 12x10 =120

All 4 digit combinations:

1) All 4 digits pressed at once is 5c4 = 5
2) 3 digits + single is 5c3 = 20, then with that 3p2 = 6, 6x20 = 120
3) 2 digits + 2 singles 5c2 =10, then 4p3 = 24, so 240
4) 2 digits + 2 digits 5c2 =10, then 3c2 = 3, here I'm not sure but I want to say it's 2p2 = 2, so 10x3x2 = 60

All 5 digit combinations:

1) All 5 numbers pressed at once is 5c5 = 1
2) 4 digits + single is 5c4 = 5, then 2p2 = 2, 10
3) 3 digits + 2 digits is 5c3 = 20, then 2c2 = 1, then 2p2 = 2, 40
4) 3 digit + 2 singles is 5c3 =20, then 3p3 = 6, 120
5) 2 digits + 2 digits + single is 5c2 = 10, 3c2 = 3, 3p3=6, 180
6) 2 digits + 3 singles is 5c2=10, then 4c4 = 24, 240

That sounds be all of them, so:

365+10+140+325+591 = 1431

Anything that seems like it doesn't check out? Initially I expected it to be less, and I was just thinking what a shitty lock, but 1431 isn't so bad if it's correct. Also I'd love if someone had a more mathematically beautiful solution lol. And it'd be cool to be able to extrapolate the result for a lock like this but say it had 6 numbers with the same properties.

And for those who care, I ended up guessing what the combination I entered was. I was mashing fairly predictable numbers, so I guessed the right one in around 10 minutes of trying haha.
In life, the journey is more satisfying than the destination. || .::Entrepreneurship::. Living a few years of your life like most people won't, so that you can spend the rest of your life like most people can't || Mechanical Engineering & Economics Major
Simberto
Profile Blog Joined July 2010
Germany11739 Posts
August 27 2019 08:36 GMT
#14728
I don't think you have all of them. I see multiple problems with what you are doing.


6) 2 digits + 3 singles is 5c2=10, then 4c4 = 24, 240

you are once again using c in part two, where you shouldn't, because order is once again important. 534(12) is not the same combination as 53(12)4. So you need 5c2 * 4p4

2) All 2 digit combinations + single, so 5c2 =10, now treat it as 2 numbers so 4p2 =12, 12x10 =120

This isn't correct either. First you need to choose which numbers you use, then how many combinations of those exist.
So you are at 5c2 for the two digits, and then at 3c1 for the single additional digit to get all combinations of doubles and singles. Then, you only have to do 2p2 for the order of doubles + single. So you get a total of 5c2 * 3c1 * 2p2 = 10*3*2 = 60 for combinations which look like this (12)5 or (34)1

I think some of this may come from a misunderstanding of what i wrote earlier. But that is okay, because what i wrote earlier wouldn't work either, because you will count some things double. Your way works, if you do it correctly.
Acrofales
Profile Joined August 2010
Spain18208 Posts
Last Edited: 2019-08-27 09:15:39
August 27 2019 09:06 GMT
#14729
On August 27 2019 17:36 Simberto wrote:
I don't think you have all of them. I see multiple problems with what you are doing.


Show nested quote +
6) 2 digits + 3 singles is 5c2=10, then 4c4 = 24, 240

you are once again using c in part two, where you shouldn't, because order is once again important. 534(12) is not the same combination as 53(12)4. So you need 5c2 * 4p4

Show nested quote +
2) All 2 digit combinations + single, so 5c2 =10, now treat it as 2 numbers so 4p2 =12, 12x10 =120

This isn't correct either. First you need to choose which numbers you use, then how many combinations of those exist.
So you are at 5c2 for the two digits, and then at 3c1 for the single additional digit to get all combinations of doubles and singles. Then, you only have to do 2p2 for the order of doubles + single. So you get a total of 5c2 * 3c1 * 2p2 = 10*3*2 = 60 for combinations which look like this (12)5 or (34)1

I think some of this may come from a misunderstanding of what i wrote earlier. But that is okay, because what i wrote earlier wouldn't work either, because you will count some things double. Your way works, if you do it correctly.



No. I think the second part is wrong. You do 5c2 to find all 2-key-press combos, and then you get it as a keypad with 4 keys where order is important again, so 5c2 * (4p1 + 4p2 + 4p3 + 4p4) = 10 * (4+12+24+24) = 640

Then you do the same for 5c3 * (3p1 + 3p2 + 3p3) = 150 , 5c4 * (2p1 + 2p2) = 20 and 5c5 = 1

So that's 811 combinations for all the combined key presses. Assuming fiwi mathed it right for the single key presses, a combined total of 811+325=1136

Simberto
Profile Blog Joined July 2010
Germany11739 Posts
August 27 2019 09:34 GMT
#14730
Yes, that is what i thought yesterday, and it would be simpler, but you are counting some things double, because it is not a new keypad. What you are doing is first combining two numbers to one, and then picking permutations out of that pool of 4 numbers. But a three-number permutation out of that pool might not involve the double number. Example: {(12);3;4;5}, 345 is a valid three-number permutation of that set. But you already counted 345 earlier when you did the non-weird numbers.

Now, we could try to figure out how many lock combinations we count doubly each time, and subtract them from our total result. Or we go the route that FiWiFaKi went, and split it up even further.

So we have things like permutations involving a pair and two singles, or permutations involving two pairs and one single, or permutations involving a triplet and a single. Those are the things he is counting, but he is not counting them correctly.
Acrofales
Profile Joined August 2010
Spain18208 Posts
August 27 2019 09:42 GMT
#14731
Oh yeah, of course.

Also, is it possible to make double combinations? So (12)(34)? Or (123)(45)? There aren't that many, but still, if that's a possibility, they need to be accounted for.
Simberto
Profile Blog Joined July 2010
Germany11739 Posts
August 27 2019 09:44 GMT
#14732
I assumed so, and FiWiFaKi counted some of them (and it was his question), like here


3) 3 digits + 2 digits is 5c3 = 20, then 2c2 = 1, then 2p2 = 2, 40


In this case, they are actually counted correctly, too.
Splax
Profile Joined September 2010
Sweden51 Posts
Last Edited: 2019-08-27 23:34:16
August 27 2019 20:42 GMT
#14733
Here's my stab at it:
+ Show Spoiler +

formatting is hard

number of combinations list of # of simultaneously pressed buttons, space delimited
5 1
5*6 1 2
5*12 1 2 1
5*12 1 2 1 1
5*6 1 2 2
5*4 1 3
5*4 1 3 1
5 1 4
= (1+6+12+12+6+4+4+1) * 5 = 230

20 1 1
20*3 1 1 2
20*3 1 1 2 1
20 1 1 3
= (1+3+3+1) * 20 = 160

60 1 1 1
60 1 1 1 2
= (1+1) * 60 = 120

120 1 1 1 1
120 1 1 1 1 1

10 2
10*3 2 1
10*3 2 1 2
10*6 2 1 1
10*6 2 1 1 1
10*3 2 2
10*3 2 2 1
10 2 3
= (1+3+3+6+6+3+3+1) * 10 = 260

10 3
10*2 3 1
10*2 3 1 1
10 3 2
= (1+2+2+1) * 10 = 60

5 4
5 4 1
= 10

1 5
= 1

230+160+120+120+120+260+60+10+1
1081

Hope I'm not missing something obvious here..

A simple google gives me wolfram alpha that says if all buttons are required to be pressed, we're looking at 541 possible combinations for n=5, so if we exclude our counts for less than 5 buttons pressed total, we should get 541.
Zambrah
Profile Blog Joined June 2011
United States7393 Posts
August 28 2019 12:14 GMT
#14734
Tasteless and NoRegret are curious;

If a Battlecruiser warps in at lightspeed, does it not kill all the inhabitants on the Battlecruiser?
Incremental change is the Democrat version of Trickle Down economics.
Simberto
Profile Blog Joined July 2010
Germany11739 Posts
August 28 2019 13:09 GMT
#14735
Since this is not real currently known physics, any answer is equally true.

But in general, speed does not kill things. Acceleration does. So the question is not how fast it moves, but how fast it decelerates afterwards, and if there are any SciFiTech "Inertial Dampeners" to stop everyone from being a stain on the wall.

Humans are usually pretty fine at up to 5g acceleration, fighter pilots can take up to 10g with special equipment, and there have been occurences of humans surviving higher accelerations. But even if we say that with futuretech, humans can survive 20g of acceleration. That is 200m/s². Which means to get from near lightspeed to zero, it would take you 1.5 million seconds, or about 17 days to decelerate from near lightspeed to zero at an acceleration that is probably still too high for humans to survive. I think we can safely say that that is not the amount of time Battlecruisers take to decelerate.

There are ways around this, of course. The basic classic SciFi tropes are that FTL travel isn't actually achieved by accelerating past the speed of light, but by doing something qualitatively different, like warp, hyperspace, or whatever. At this point, we can't really use normal science to estimate anything, because it is basically magic. And/or we have inertial dampeners which mean that the inside of the ship doesn't "feel" the acceleration. Which once again is basically magic, and we cannot make any reasonable estimates of what that would lead to.

If you have none of these, and do what battlecruisers do, it doesn't actually matter if you are a human inside that battlecruiser, or a steel part of the hull of it, or basically anything else. Nothing can take the kind of force necessary for that kind of acceleration. If you go from near light to zero in one second, you need an acceleration of 300 million m/s², which equal 30 million N /kg of mass. That will nicely rip everything to shreds, and depending on how we apply the force, either compact it into a nice neutronium ball, or spread the battlecruiser out as a quickly expanding gas cloud.
_fool
Profile Joined February 2011
Netherlands681 Posts
Last Edited: 2019-08-28 18:17:08
August 28 2019 18:14 GMT
#14736
I occasionally eat my dinner with (reusable) chopsticks. But they're a pain to put in the dishwasher! I can't put them in the cutlery basket with the forks and knives, because they fall through. I can't put them in the top because they are pushed around by the water jets, ending up on the bottom and/or blocking the rotating thingy.

How do you clean your chopsticks. Dishwasher? Just rinse them in the sink? Just leave them for the next day? Do Asian dishwashers have a dedicated chopsticks area?

"News is to the mind what sugar is to the body"
Uldridge
Profile Blog Joined January 2011
Belgium5041 Posts
August 28 2019 18:20 GMT
#14737
They're sticks. Literally just rinse them and they should be clean. Use some detergent if you want to be safe, however, anything none meat and fish can basically be rinsed without soap because those are the only foodstuffs where small chunks can harbor pathogens for the human body.
But for like 99.99% of the time just rinsing with hot water is all you need. And they're sticks, so it takes like literally 5s after your water is hot. In the mean time, if your water takes a while to heat up, just use that to fill a drinking bottle or water your plants with.
Taxes are for Terrans
_fool
Profile Joined February 2011
Netherlands681 Posts
August 28 2019 19:34 GMT
#14738
On August 29 2019 03:20 Uldridge wrote:
In the mean time, if your water takes a while to heat up, just use that to fill a drinking bottle or water your plants with.


It's like you know my kitchen inside out It takes ages before the water gets hot! Tnx dude.
"News is to the mind what sugar is to the body"
Uldridge
Profile Blog Joined January 2011
Belgium5041 Posts
August 28 2019 21:21 GMT
#14739
Why don't you look in the cabinet under the sink..
Taxes are for Terrans
Dangermousecatdog
Profile Joined December 2010
United Kingdom7084 Posts
Last Edited: 2019-08-28 21:55:20
August 28 2019 21:52 GMT
#14740
I kjisread it wrong as
-Has 5 numbers, 1 through 5.
-Each number can be pressed at most once.

and seperately

-Can press as many numbers as wanted simultaneously. For example pressing 2 and 4 at same time is a different combination than pressing 2 then 4, or pressing 4 then 2
So
For 1=1
For 2=2
For 3=6
For 4=24
For 5=120
So for each number pressed once at most once is 1+2+6+24+120=153

Then for sumbers pressed simultaneously, draw 5 dots in a pentagram and join all the lines together.
For 1=5
For 2=10
For 3=10
For 4=5
For 5=1

So 31 combinations

153+31=184 but both have pressing 1 twice so -1 to that so its 183.

If it isn't separate it's a bit more complicated and I'll just leave out of embarrassment.

On August 29 2019 03:14 _fool wrote:
I occasionally eat my dinner with (reusable) chopsticks. But they're a pain to put in the dishwasher! I can't put them in the cutlery basket with the forks and knives, because they fall through. I can't put them in the top because they are pushed around by the water jets, ending up on the bottom and/or blocking the rotating thingy.

How do you clean your chopsticks. Dishwasher? Just rinse them in the sink? Just leave them for the next day? Do Asian dishwashers have a dedicated chopsticks area?


My cutlery basket have holes small enough that chopsticks can't fall through.
Prev 1 735 736 737 738 739 783 Next
Please log in or register to reply.
Live Events Refresh
Next event in 5h 6m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 430
Harstem 255
OGKoka 177
UpATreeSC 104
BRAT_OK 65
JuggernautJason17
MindelVK 15
StarCraft: Brood War
Britney 23664
Calm 3272
Mini 526
Shuttle 165
actioN 150
ggaemo 114
Backho 51
Hyuk 36
910 28
Rock 16
Dota 2
qojqva2066
Dendi804
LuMiX1
League of Legends
C9.Mang083
Counter-Strike
fl0m1777
adren_tv109
ptr_tv104
Heroes of the Storm
Liquid`Hasu322
Khaldor120
Other Games
gofns12289
Grubby3942
FrodaN1846
Beastyqt1092
ArmadaUGS107
TKL 102
Mew2King58
Trikslyr55
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• StrangeGG 77
• HeavenSC 28
• Reevou 4
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 36
• FirePhoenix11
• Michael_bg 2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV461
League of Legends
• TFBlade1848
• imaqtpie1544
• Shiphtur508
Upcoming Events
Replay Cast
5h 6m
The PondCast
15h 6m
WardiTV Invitational
17h 6m
Replay Cast
1d 5h
RongYI Cup
2 days
herO vs Maru
uThermal 2v2 Circuit
3 days
Replay Cast
4 days
Wardi Open
4 days
Monday Night Weeklies
4 days
Sparkling Tuna Cup
5 days
Liquipedia Results

Completed

Proleague 2026-02-03
HSC XXVIII
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Rongyi Cup S3
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W7
Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
LiuLi Cup: 2025 Grand Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.