• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:49
CEST 03:49
KST 10:49
  • 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
[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8
Community News
SC4ALL: II SC2 Complete Invited Player Lineup4StarCraft II 5.0.17 PTR Patch Notes (Sept 30, 2026)66Weekly Cups (Sept 21-27): herO and ByuN double2Weekly Cups (Sep 13-20): herO scores triple3BSL Season 2315
StarCraft 2
General
Back to SC2 after 14 years - Protoss CTRL groups? How do you feel about the mass reverts in the 5.0.17 PTR? October World Ranking: herO stays #1, ByuN returns SC4ALL: II SC2 Complete Invited Player Lineup StarCraft II 5.0.17 PTR Patch Notes (Sept 30, 2026)
Tourneys
Stellar Fest TWO the Moon (Dec 16-20) Sparkling Tuna Cup - Weekly Open Tournament 2026 GSTL Grand Finals Sea Duckling Open (Global, Bronze-Diamond) SC2 INu's Battles#21 [ 3-Days tournament ]
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 545 And Drops and Rifts Mutation # 544 Double Trouble Mutation # 543 Enhanced Defenses
Brood War
General
BW General Discussion Sagi.gg Launcher Released RepMastered™: replay sharing and analyzer site Bot on ladder BSL Season 23
Tourneys
2v2v2v2 Tournament [ASL22] Ro8 Day 4 [Megathread] Daily Proleagues [ASL22] Ro8 Day 3
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Warcraft III: The Frozen Throne Stormgate/Frost Giant Megathread Total Annihilation Zero
Dota 2
Dota 2 Champions League Season 3 Begins April 25! Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread Artificial Intelligence Thread
Fan Clubs
Serral Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Diablo Animated Series on Netflix
Sports
Football (Soccer) Thread MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
Escaping Into Video Games: G…
TrAiDoS
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
[meme] I finally understa…
LUCKY_NOOB
Regacy Esports:Our Goa…
regacyesports
Customize Sidebar...

Website Feedback

Closed Threads



Active: 9576 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 States44352 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 States46483 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
Germany12015 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 States46483 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 States24369 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 States46483 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
Germany12015 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
Spain18449 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
Germany12015 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
Spain18449 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
Germany12015 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
Germany12015 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
Netherlands685 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
Belgium5226 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
Netherlands685 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
Belgium5226 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 8h 12m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 15
StarCraft: Brood War
Hyuk 59
NaDa 31
Dota 2
NeuroSwarm227
LuMiX0
Other Games
summit1g9586
JimRising 691
ViBE163
Mew2King101
ArmadaUGS74
Trikslyr30
Organizations
Other Games
gamesdonequick1305
BasetradeTV178
Dota 2
PGL Dota 2 - Main Stream113
[ Show 10 non-featured ]
StarCraft 2
• Hupsaiya 110
• davetesta59
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Sparkling Tuna Cup
8h 12m
INu's Battles
10h 12m
herO vs Classic
Percival vs Rogue
Shopify Rebellion Sundays
13h 12m
MilkiCow vs TBD
Clem vs TBD
BSL Open Qualifier
17h 12m
BSL Open Qualifier
17h 12m
Replay Cast
21h 12m
Afreeca Starleague
1d 8h
Rush vs Light
WardiTV Weekly
1d 9h
Monday Night Weeklies
1d 14h
Replay Cast
1d 21h
[ Show More ]
Afreeca Starleague
2 days
Soma vs Soulkey
INu's Battles
2 days
SHIN vs Cure
ByuN vs Zoun
PiGosaur Cup
2 days
The PondCast
4 days
INu's Battles
4 days
Replay Cast
5 days
BSL: Ladder Tournament
6 days
Liquipedia Results

Completed

CSL 2026 AUTUMN (S22)
Blizzard Classic Cup 2026
Calamity Invitational

Ongoing

ASL Season 22
Super Anchor Qualifying S3
Acropolis #5
Acropolis #5 - GSB
Copium Cup
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual

Upcoming

Acropolis #5 - GSC
BSL Season 23
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Custodian Cup
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
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.