• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:13
CEST 08:13
KST 15:13
  • 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
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
SC4ALL II announced - $10,000 prize pool, Dec 5-62PIG STY FESTIVAL 8.0! (13 - 23 August)8Neeb returns to progaming; rejoins ONSYDE14Weekly Cups (July 20-26): Early returns on 5.0.16b8IntoTheTV X SOOP SC2 League : Weekly & Monthly5
StarCraft 2
General
SC4ALL II: StarCraft 2 Player Announcement 1/8 Balance hotfix patch 5.0.16b (July 16) Neeb returns to progaming; rejoins ONSYDE Clem: "I don't have that much hope in Blizzard" Weekly Cups (July 20-26): Early returns on 5.0.16b
Tourneys
SC4ALL II announced - $10,000 prize pool, Dec 5-6 PIG STY FESTIVAL 8.0! (13 - 23 August) IntoTheTV X SOOP SC2 League : Weekly & Monthly Crank Gathers Season 4: BW vs SC2 Team League RSL Revival: Season 6 - Qualifiers and Main Event
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 536 Railroad Switch The PondCast: SC2 News & Results Mutation # 535 Assembly of Vengeance Mutation # 534 Burning Evacuation
Brood War
General
ASL22 General Discussion BW General Discussion BW Drama: Terror's Debt Incident + C9 disbanding BGH Auto Balance -> http://bghmmr.eu/ Making an Online Broodwar Manager Game
Tourneys
[Megathread] Daily Proleagues BSL LAN Party - Kraków 29-30 August - OPEN SIGNUPS Escore Tournament - Season 3 2v2v2v2 Tournament
Strategy
Fighting Spirit mining rates Odyssey Mineral Stack Saturation Simple Questions, Simple Answers PvT advise for noobs
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Path of Exile ZeroSpace Early Access is Now Live! Stormgate/Frost Giant Megathread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
Artificial Intelligence Thread US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread Series you have seen recently... [Req][Books] Good Fantasy/SciFi books
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
What is a Gamer?
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6369 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 States44205 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 States46248 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
Germany11945 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 States46248 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 States24211 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 States46248 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
Germany11945 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
Spain18399 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
Germany11945 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
Spain18399 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
Germany11945 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
Germany11945 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
Netherlands683 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
Belgium5198 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
Netherlands683 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
Belgium5198 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
Afreeca Starleague
04:00
Qualifiers Day 1
Afreeca ASL 3099
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 102
FoxeR 52
StarCraft: Brood War
Bisu 7054
Leta 748
Zeus 493
Terrorterran 27
ZergMaN 19
Noble 14
Dota 2
LuMiX1
League of Legends
JimRising 603
Counter-Strike
summit1g8440
Other Games
WinterStarcraft582
C9.Mang0330
Happy149
ROOTCatZ91
RuFF_SC282
Organizations
Other Games
gamesdonequick1004
StarCraft: Brood War
UltimateBattle 177
Other Games
BasetradeTV35
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2177
League of Legends
• Stunt395
Upcoming Events
RSL Revival
2h 47m
ByuN vs SHIN
Solar vs Lambo
WardiTV Summer Champion…
4h 47m
Afreeca Starleague
21h 47m
RSL Revival
1d 2h
Clem vs Serral
herO vs Rogue
WardiTV Summer Champion…
1d 5h
WardiTV Weekly
2 days
Sparkling Tuna Cup
3 days
PiGosaur Cup
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
[ Show More ]
Replay Cast
4 days
The PondCast
5 days
Replay Cast
5 days
IntoTheTV X SOOP
6 days
Liquipedia Results

Completed

Escore Tournament S3: W5
CranK Gathers Season 4: BW vs SC2 Team League
Eternal Conflict S2 Finale

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
ASL Season 22: Qualifier #1
RSL Revival: Season 6
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026

Upcoming

ASL Season 22: Qualifier #2
K-JUNGMAN
Acropolis #5
Escore Tournament S3: W6
Escore Tournament S3: W7
Escore Tournament S3: W8
CSLAN 4
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
PiG Sty Festival 8.0
Thunderpick World Champ.
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 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.