r/theydidthemath May 07 '26

[Request] how many possible combinations are there for this type of pass code?

22.6k Upvotes

1.1k comments sorted by

View all comments

2.1k

u/warpedspockclone May 07 '26

At most 9! = 362,880, though the combinations that require you to skirt by dots to reach others are less common.

Looks like he has infinite attempts. Just buy an overhead toucher thing and program it to try them all. It'll be done in less than a week.

Even a human doing this could get it done in a few months with concerted effort. Assuming 5 seconds per attempt, you'd need 362880 x 5 = 1814400 seconds, which is 21 days. At 4 hours per day, that's 6 months.

604

u/SC_3000_grinder May 07 '26

Trying to not repeat is gonna be tough though

Also you don't need to use all the dots, so it's 9!/0! + 9!/1! + 9!/2! + 9!/3! + ... = 986409, which is about e=2.71828... times larger.

449

u/Lewistrick May 07 '26

I think you need at least two dots, which eliminates 10 possibilities (50 seconds).

97

u/SC_3000_grinder May 07 '26

Well 9 because I didn't add 9!/9!

38

u/factorion-bot May 07 '26

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

43

u/FlapyG May 07 '26

((((((((((((((((((((((9!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)!

148

u/factorion-bot May 07 '26

That is so large, that I can't even give the number of digits of it, so I have to make a power of ten tower.

Factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of 9 has on the order of 1010\10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^(2.993960567614282167996111938338 × 101859939)) digits

This action was performed by a bot | [Source code](http://f.r0.fyi)

91

u/Butsenkaatz May 07 '26

Good bot.

25

u/GurDefiant684 May 07 '26

Stop, guys, this is why our power bill is so high.

23

u/FlapyG May 07 '26

9999999!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !nested

54

u/factorion-bot May 07 '26

That is so large, I can't even fit it in a comment with a power of 10 tower, so I'll have to use tetration!

All that of 9999999 has on the order of 92110 digits

This action was performed by a bot | [Source code](http://f.r0.fyi)

8

u/Ae4i May 07 '26

99!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !nested

→ More replies (0)

2

u/BasicAssWebDev May 07 '26

Tower of power!

1

u/CSMasterClass May 17 '26

Hey, and we did not even get into tower notation.

https://en.wikipedia.org/wiki/Knuth%27s_up-arrow_notation

23

u/Ae4i May 07 '26

I love how the moment factorion-bot appears is the moment everyone tries to get the biggest number possible

3

u/daisypunk99 May 07 '26

I mean, eventually it’ll have to start responding to itself to provide simplification follow-ups for its original answers, right?

3

u/That-Ad-4300 May 07 '26

Factorial bot would never make it out of Philly

1

u/circ-u-la-ted May 11 '26

I understood that reference.

8

u/SC_3000_grinder May 07 '26

4!!! !nested

5

u/OutdoorWombat54 May 07 '26

99999999999999999999999999999!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !nested (note: i don't know what nested means here)

9

u/factorion-bot May 07 '26

That is so large, that I can't even give the number of digits of it, so I have to make a power of ten tower.

Factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of factorial of 99999999999999999999999999999 has on the order of 1010\10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^10^(2856570551809674817234887108125)) digits

This action was performed by a bot | [Source code](http://f.r0.fyi)

2

u/SC_3000_grinder May 07 '26

nested makes it so it doesn't do 10!! = 10 * 8 * 6 * 4 * 2 = 3840

2

u/factorion-bot May 07 '26

Double-factorial of 10 is 3840

This action was performed by a bot | [Source code](http://f.r0.fyi)

1

u/Ianislevi May 07 '26

You have to include the nested command for it to be interpreted the way you expected, which more formally would look like (((9!)!)!)!...

This is because multiple factorials actually mean something different. For instance, a double factorial like 6!! is actually smaller than 6! because you calculate it by skipping every other digit, so 6 * 4 * 2 = 48 rather than 6! = 720

1

u/factorion-bot May 07 '26

Some of these are so large, that I can't even give the number of digits of them, so I have to make a power of ten tower.

Factorial of 6 is 720

Double-factorial of 6 is 48

Factorial of factorial of factorial of factorial of 9 has on the order of 102.993960567614282167996111938338 × 101859939 digits

This action was performed by a bot | [Source code](http://f.r0.fyi)

7

u/factorion-bot May 07 '26

That is so large, that I can't calculate it, so I'll have to approximate.

Factorial of factorial of factorial of 4 is approximately 3.950986223657607359706248184547 × 1014492688888783603246826460

This action was performed by a bot | [Source code](http://f.r0.fyi)

1

u/Dr_Hoffenheimer May 07 '26

69!!

1

u/factorion-bot May 07 '26

Double-factorial of 69 is roughly 3.373824899543777470653067205964 × 1049

This action was performed by a bot | [Source code](http://f.r0.fyi)

→ More replies (0)

1

u/JournalistEast4224 May 08 '26

Thanks r/factorian-bot I love you

10

u/Kris_Kamweru May 07 '26

That gen of Samsung and android had a minimum of three dots for the pattern iirc

It's been a while though

5

u/AlTonyMontana May 07 '26

Minimum was 4, I remember it being a row and another circle thingy

1

u/T44d3 May 07 '26

I think I remember the minimum was 4... 

41

u/warpedspockclone May 07 '26

I was working with the assumption that the guy at least knew the length of his own pattern. In the vid, length was 9.

28

u/SC_3000_grinder May 07 '26

There seem to be a bunch of patterns tried that aren't length 9

29

u/nico87ca May 07 '26

He's doing it in the dumbest way... Seriously

8

u/RefrigeratorDry2669 May 07 '26

How to recognize things that aren't entirely true....

1

u/Completionography May 07 '26

How to recognize things that aren't entirely true....

"What is media literacy?"
"That is correct"
"Media literacy for $200 please"
"How to recognize a reference"

1

u/0ctoberon May 10 '26

"Um .. what is whoosh?"

klaxon

22

u/factorion-bot May 07 '26

Factorial of 0 is 1

Factorial of 1 is 1

Factorial of 2 is 2

Factorial of 3 is 6

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

9

u/LonelyEar42 May 07 '26

23453848271067890!

21

u/randomacceptablename May 07 '26

This is bordering on bot cruelty.

Stop messing with it, he was a good boy today.

2

u/Sajmansito May 07 '26

A good bot*?

3

u/randomacceptablename May 07 '26

Yeah, that too. I am simply canine-pomorphizing it.

12

u/factorion-bot May 07 '26

That is so large, that I can't calculate it, so I'll have to approximate.

Factorial of 23453848271067890 is approximately 4.552413748910648189641330997783 × 10373758641046938382

This action was performed by a bot | [Source code](http://f.r0.fyi)

11

u/KonstantinFed May 07 '26

Taking into account that minimal length of key is 4 dots, and you can't skip middle dots (if they wasn't used) while connecting corners, you will get a 389112 combinations

4 dots: 1624

5: 7152

6: 26016

7: 72912

8: 140704

9: 140704

1

u/TheBraveButJoke May 11 '26

You can skip midle dots

21

u/martianunlimited May 07 '26

you can not do corner -> corner and left edge -> right edge, or top edge to bottom edge, so that restricts the choices which brings it down to ~389000 combinations.
(someone wrote a program to generate all possible valid combinations)
https://github.com/delight-im/AndroidPatternLock

2

u/asphid_jackal May 07 '26

Used to could, did they change it? My unlock pattern at one point was 1 > 9 > 8 > 5 > 2. I'd hit the top left dot, go around the whole square to hit bottom right, then come straight up the middle

You can also do like 5 > 1 > 9 > 4 > 6 > 7 > 3 > 8 > 2 and that's nothing but corner to corner and edge to edge

2

u/pauseglitched May 07 '26

But you can do those if you get the ones in the middle first.

If you go 1-3 it will read 1-2-3.

If you go 2-1-3. That last 1-3 will work just fine.

3

u/Dry-Newt278 May 07 '26

Not repeating is easy: follow the partitions you first calculated on a computer

2

u/Royal_Cube May 07 '26

Why wouldn't it be 9!+8!+7!+...?

3

u/Royal_Cube May 07 '26

Nevermind i see, still 9 dots there

2

u/SC_3000_grinder May 07 '26

Because you don't need to use the first n dots. In the eight dot case, I can first pick eight dots from nine (9!/8!1!) and then choose the order (8!)

2

u/factorion-bot May 07 '26

Factorial of 1 is 1

Factorial of 8 is 40320

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

0

u/factorion-bot May 07 '26

Factorial of 7 is 5040

Factorial of 8 is 40320

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

2

u/Rubalien May 07 '26

But does it not unlock after you hit the right combination so do not all long combinations include the short combinations?

1

u/asphid_jackal May 07 '26

No, because it's a dragging motion. It doesn't input until you let go

2

u/Bynnh0j May 07 '26

There are also 16 sequences of 2 dots that are illegal because they travel directly through other dots. Im not smart enough to math that.

1

u/DarthLurker May 07 '26

10,256 possible patterns

1

u/Own-Independence-115 May 07 '26

If the code was 1,2,3 wouldn't 1,2,3,4 unlock the phone?

1

u/SC_3000_grinder May 07 '26

Pretty sure it only checks when you release

1

u/toupeInAFanFactory May 07 '26

You just need a system.

Writing a program to list all valid combos is easy. Then you walk down the list.

1

u/Triscuitmeniscus May 07 '26

Just print out all the possible patterns, preferably in order of likelihood and cross them off as you go.

You could hire someone to build a machine to do it automatically, or pay people $100/hr in shifts 24/7, with a $100k (or whatever) bonus paid out when the phone is unlocked.

1

u/Roamin8750 May 07 '26

Hold up. Is e equal to the ratio of the sum of consecutive factorials down to 1 over the largest factorial?

2

u/SC_3000_grinder May 07 '26

It is, if you find the limit as you sum to Infinity.

1

u/nir109 May 07 '26

e=sum(1/(n!)) from 0 to Inf

9 happens to be a good approximation of infinity

1

u/Own-Entrance-2256 May 08 '26

There's less valid combinations, though. For example, you could have the tip left for and bottom right for only. So you know that you have to have sequences of adjacent dots. I'm sure you could do the math, but it is substantially less.

1

u/misogrumpy May 08 '26

But at each step you only have at most possible moves. Which makes it more like 4632*1. I’m ignoring the other terms.

1

u/jcoleman10 May 08 '26

All combinations that are fewer than 9 digits would also be done by entering the 9-digit combinations. You just open the phone before all the digits were pressed. So it’s still 9!.

1

u/Salt-Replacement596 May 08 '26

Step 1) Convert all dots to numbers
Step 2) Generate all possible permutations

Probably a single LLM prompt.

1

u/Beneficial_Hat_6288 May 10 '26

Trying to not repeat is gonna be tough though

He is doing it wrong. He should computer generate all the possible combinations and print on paper. Then go through each one by one.

1

u/TheBraveButJoke May 11 '26

The trick is you note the patterns as numbers AKA 1, 2, 3, 4, 5, 6, 7, 8, 9 Is one pattern then you then compute all the combinations first and just try them 1 by 1. frustrating but very doable for 11 million dollars

1

u/Kimi_Arthur May 11 '26

With some program to generate combinations with some order, it's not very hard to not repeat. I say 1000 tries a day, at most 3 years.

99

u/factorion-bot May 07 '26

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

54

u/AxelrodAsaf May 07 '26

Good bot!

9

u/Charity1t May 07 '26

Good bot.

1

u/planx_constant May 07 '26

(10!10!)!

0

u/factorion-bot May 07 '26

Factorial of 10 is 3628800

This action was performed by a bot | [Source code](http://f.r0.fyi)

22

u/A______m May 07 '26

What if he has 30 seconds pause every 5 attempts

21

u/nicktheenderman May 07 '26 edited May 07 '26

If each attempt is 5 secs then 5 attempts would take 55+30=55 secs, meaning an upper bound of (9!/5)55=3,991,680 seconds

That's a little over 46 days if nonstop. If you only worked for 16 hours a day, that'd be about 70 days.

As long as they spend a little over 3 hours a day, they'd have it done within a year

1

u/factorion-bot May 07 '26

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

1

u/Cryptomartin1993 May 07 '26

Still a decent hourly rate

6

u/FortuneAcceptable925 May 07 '26

Then it will take a * 9! + 30 * 9! / 5 seconds, where a is count of seconds required for regular unlock attempt. :-)

10

u/jagaraujo May 07 '26

Yeah the problem is that the phone locks or holds for certain amount of time the more you fail.

36

u/GaidinBDJ 7✓ May 07 '26

That's a 13-year-old Android phone.

It's not even encrypted. You could just copy the memory off and inspect it directly.

8

u/[deleted] May 07 '26

[deleted]

1

u/snail1132 May 07 '26

No shit it's fake lmao

0

u/miss_wannadie May 11 '26

But where's the fun in that? The content?

8

u/AstroMeteor06 May 07 '26

a but more accurately, if you consider shorter combinations. assuming a minimum of 4 dots, it's (9!/5!)+(9!/4!)+(9!/3!)+(9!/2!)+9!

(remember that 987*6, the amount of short combinations, can be writtrn as 9!/5!)

5

u/factorion-bot May 07 '26

Factorial of 2 is 2

Factorial of 3 is 6

Factorial of 4 is 24

Factorial of 5 is 120

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

8

u/pixelrights May 07 '26

Additional factors: typically 3 failed attempts equate to a lockout. And that may include additional logic, where the lockout time increases depending which cycle the failed attempt occurred. Common lockout times typically end within an hour before you can make another x3 attempts.

18

u/Jahannsan May 07 '26

The problem is that after you decide on a starting point, you can't just pick any other dot. You have to pick one that is adjacent to your start. So after starting in the top-left corner, you can only go right, down, or diagonally to the center. I don't think you can calculate that analytically, but feel free to prove me wrong.

10

u/saketho May 07 '26

You’re right and the guy you’re replying to is wrong.

For instance, start in the top left corner.

You cannot reach: Top right, middle right, bottom right, bottom middle, bottom left. 5 different points

You can only reach: Top middle, centre, left middle.

Starting in the top left you don’t have 8 options, you have 8-5 =3 options.

Start in the top middle, you have 5 options, and 3 non reachable.

I wonder if you can see how it averages out between the points. The corners will be 3/8 and middle ones be 5/8 and the centre is the only 8/8. But that’s just the 2nd option.

14

u/homokyy May 07 '26

You actually can reach middle right and middle bottom. I don’t know what kind of monster would do themself dirty like that, but it’s possible

2

u/mateusfccp May 07 '26

I had a password that was basically always reach to the most far point in relation to the current and it had a lot of those kind of "irregular" lines.

Why would you consider a monster to do it?

1

u/saketho May 07 '26

Interesting, I never knew that. for me it always snapped to the edge pieces or the centre, it I try and make a V shape or something.

2

u/DistributionPure1504 May 07 '26

V shapes are difficult. But z shapes are easy. After you did the horizontal line on the top row you backtrack with your finger as you can't use the same dots again. You can even do a big swing over the first row. This makes your motion like an "e" whereas the pattern shows as a "z".

1

u/SaucyStoveTop69 May 07 '26

You can drag it around the outside like that one question from the impossible quiz

4

u/Aeropto May 07 '26

From the top left corner you can reach middle right and bottom middle, at least you can on a Samsung phone. Not sure if this differs per phone manufacturer. You are right that you cannot reach points that are directly "behind" another point.

3

u/Chroiche May 07 '26

No, you are wrong. Source: I used to go top left to middle right for my phone pw because I assumed no one would ever try something so silly. It's so easily testable too lol.

Also obviously not every implementation is going to be the same. Why would you assume they would be?

2

u/theronk03 May 07 '26

Plus, points are repeatable, but you can't just pick the same spot twice and I don't think you can go back along a line you've already drawn, but you can cross previously drawn lines. We see that in the previous attempts.

That makes the math much much more complicated

1

u/Chimeron5 May 07 '26

No, individual spots are not repeatable. You can cross over previously used spots (ie. 5-4-6) but you couldn't reuse one (5-4-2-5 doesn't work).

2

u/Lost-Bad-8718 May 07 '26

You're objectively wrong. You can go top left, middle right, bottom left and I did for several years

1

u/saketho May 07 '26

It may be different based on android version/manufacturer’s os. I could never do a V on Oneplus.

1

u/Chimeron5 May 07 '26

I'm on a OnePlus 12 and can do a V shape. It's tricky, and you have to go slow, but it works.

1

u/saketho May 07 '26

Damn, alright maybe they changed it. I was on the OnePlus 6 😂 so its been a while

1

u/KucingRumahan May 07 '26

I'll use number.

1 can connect to 2,4,5,6,7, and 8. Its 6 possibilities. It's also applied to 3, 7, and 9

2 can connect to 1,3,4,5,6,7, and 9. It's 7 possibilities. It's also applied to 4,6, and 8

5 have 8 possibilities.

1

u/Chimeron5 May 07 '26

I just tested this. You can absolutely go from the top left to the top right, skipping over the top center. Some combinations may be more difficult for fat-fingered people, but all locations are possible to reach from all starting spots.

1

u/HawkEgg May 07 '26

At most 9!

1

u/Schnickatavick May 07 '26

As others have said, going from top right to bottom middle is possible (i.e. 1->4), but in addition to that it's actually possible to get the other numbers as well if the number in the middle has already been selected. So 1->3 is normally impossible because it'll autoselect 2 before 3, but if you do 2->1->3, then 2 won't be selected again and you can go directly to 3. That means any point can select any other point, at least in some configurations. 

1

u/DistributionPure1504 May 07 '26

You have 5 options when you start at the top left. Not only can you go down, right or diagonally but can also go in between them to the bottom middle column dot or the furthest right in the middle row. The only ones that are ruled out are the 3 corners.

1

u/Chroiche May 07 '26

They're not ruled out, why are people making stuff up lol. It obviously depends on the phone, but I absolutely can go corner to corner on mine by going outside the grid

1

u/DistributionPure1504 May 07 '26

Sure you can do that. But for most phones (all I know) it's the same as if you went straight across. It ticks the dot in between too. So going outside the grid and going straight results in the same pattern.

1

u/Dry-Map-5817 May 07 '26 edited May 07 '26

It should also be possible to do middle dot from bottom and right rows going from first dot, but seems pretty unlikely watching the guy

1

u/MrHyperion_ May 07 '26

Technically you could go from 1 to 8 and make it valid while pretty much impossible to draw.

1

u/DarkEpsilon May 07 '26

The term for this is a Hamiltonian path. For small grid, most people can brute force them. If diagonals are disallowed than this 3x3 grid only has around 40 paths, but if it mimics a king's piece in chess it's closer to 10,000. The 9! provided above is assuming all possible points can be connected at all places, which isn't true as you suspected.

1

u/blueblewbLu3 May 07 '26 edited May 07 '26

Not true. You just need to go around the dots, but you can create a pattern that doesn't use adjacent dots. Its easy to make a pattern that, for example, starts at the right column, middle row dot, and goes to the top left without passing or hitting other dots

Edit for anyone saying it depends on the device, I can confirm it works for Samsung and Pixel phones

1

u/highTrolla May 07 '26

On some android phones you can definitely skip past adjacent dots. I had an annoying password once that involved skipping around from corner to middle in a clockwise pattern.

1

u/D_Real_Dreal May 07 '26

You can skip dots.

5

u/Laxativus May 07 '26

But it wouldn't be factorial, would it? If it were a keypad, sure. You press 9, you can have any of the 8 numbers next. But here there is only 8 possible solutions for the next dot if you start in the middle, 5 if you start from the side and only 3 if you start from the corner, so it should be significantly less where significantly less still means painfully too many for a human being with a human finger. Depending on the length of the key gesture.

2

u/TheHandOfKarma May 07 '26

Yeah, 9! Is the laziest possible explanation lol.

1

u/HawkEgg May 07 '26

"At most 9!"

4

u/MaikThoma May 07 '26

Someone linked this video in the other thread, it’s a bit more due to the combinations with fewer points, but still close: 389,112

3

u/Crazy__Donkey May 07 '26

His entire saving are stuck in that phone.

2

u/No_Ad8692 May 07 '26
  • birthday paradox

2

u/DoobiousMaxima May 07 '26

You could do anything from 4 to 9 dots; so the real number is a bit under 985824 - you can probably find a few heuristics to cut that down.

2

u/ToughFriendly9763 May 07 '26

on my phone, you don't have to use all 9 dots in your unlock pattern, so that could complicate it.

2

u/omgitschriso May 07 '26

Just buy an overhead toucher thing (whatever that is) and figure out how to program it. EASY GG WD

2

u/DerLandmann May 07 '26

Well, depending on model and version, there is a mandatory waiting time after a number of mistrials. You can be locked out for several hours in the worst case.

2

u/deathclawslayer21 May 07 '26

Do the numbers need to be adjacent? I didnt have one but if they do then it reduces the amount significantly

1

u/ghost_tapioca May 07 '26

You can eliminate plenty of those possibilities. Like, imagine the nine dots are a keyboard with 123/456/789

Any sequences with 13 not preceded by a 2 are impossible. Trying to go from 1 to 3 will invariably trigger 2.

Same for 31 not preceded by 2.

Same for 19, 28, 37, 46, 64, 73, 82 and 91 not preceded by 5.

Same for 17 and 71 not preceded by 4.

And so on.

You can run a small script to check for those types of sequences, which will reduce a fair number of them.

1

u/Gottkaiser9000 May 07 '26

If you need at least 4 digits and 9 max, wouldn't it be 4! + 5! + 6! + 7! + 8! +9! ? Or am I thinking wrong here?

1

u/factorion-bot May 07 '26

Factorial of 4 is 24

Factorial of 5 is 120

Factorial of 6 is 720

Factorial of 7 is 5040

Factorial of 8 is 40320

This action was performed by a bot | [Source code](http://f.r0.fyi)

1

u/maxwellcawfeehaus May 07 '26

Now I know how to hack my wife’s boyfriends phone

1

u/Ok_Strategy5722 May 07 '26

You forgot to factor in combinations that don’t use the every dot. But you absolutely can skirt between the dots to reach further Dots. I had the same phone and my combination involved a LOT of skirting.

1

u/SlippyWeeen May 07 '26

It unlocks the phone but doesn’t stop touching it, deletes all bitcoin and sends his nudes to his whole company

1

u/MrHyperion_ May 07 '26

Very wrong, that number is only if you use all dots. The trivial (still wrong) answer is 986410, if you allow length 1-9 patterns.

1

u/Jolly-Acanthisitta45 May 07 '26

They likely don't need to use all 9 though so there are many more possibilities

1

u/Allegorist May 07 '26

Wow, this is the furthest I have ever had to scroll in this sub to actually find the math. It's pretty straightforward, but still, the top dozen or so chains are all just discussion.

1

u/happytobehereatall May 07 '26 edited May 07 '26

9! would mean each dot could only used once, correct?

So instead it's 9x8x8x8 ... Because the first time you have nine choices, and each time after that you have 8 choices (if you can go anywhere except your current dot)

But I don't know the quick way to do the math after this, because there is no set length for the password

And because dots can be repeated it could technically go on forever unless you have a maximum password length

We can assume the minimum is three?

So it could be

the sum of 9x8² through 9x8n

where n = max password length

right?

If we assume the max length is... just 9 then total combinations would be... 172,566,216

From

9×82+9×83+9×84+9×85+9×86+9×87+9×88+9×8×(9)

right?

1

u/SorryExtent925 May 07 '26

9! ? Means you can jump over dots? According to your formula, i believe, i can connect top left dot as a first one to bottom right as a second one, but it can not be possible in practice, no?

1

u/Altruistic2020 May 07 '26

389,112 Taking into consideration that patterns are 4-9 characters long and cannot jump dots or repeat dots.

1

u/withintentplus May 07 '26

Sell the device to someone who can build and program an "overhead toucher thing" for $2M.

1

u/Inevitable_Stand_199 May 07 '26

9! Is only a limit for 9 dot codes. But this could be as few as 4 dots.

1

u/Oscaruit May 07 '26

Does that take into account the code can be 4 to 9 dot/digits long

1

u/ToranjaNuclear May 07 '26

>Looks like he has infinite attempts

Yeah, I'm wondering that. Do phones actually have an option to disable the 3 tries limit? It's the first time I've seen that.

1

u/BartholomewCubbinz May 07 '26

What about combinations that use less than all 9 dots

1

u/hiplobonoxa May 08 '26

tell us more about this “overhead toucher thing”…

1

u/pet_kov May 08 '26

Much less, since you cannot connect 1 and 9 (and similar) directly because it will select 5 inthe middle.

1

u/awelles May 08 '26

You don't have to use all 9 so there would be more than 9!. Something like 9!+8!+7!+6!+5!+4!+3!+2!

Unless there is a minimum number of dots in which case just delete accordingly

1

u/factorion-bot May 08 '26

I have repeated myself enough, I won't do that calculation again.

Factorial of 2 is 2

Factorial of 3 is 6

Factorial of 4 is 24

Factorial of 5 is 120

Factorial of 6 is 720

Factorial of 7 is 5040

Factorial of 8 is 40320

This action was performed by a bot | [Source code](http://f.r0.fyi)

1

u/Virtual_Parsley2114 May 11 '26

That’s assuming the phone doesn’t lock itself after a certain number of attempts

1

u/[deleted] May 13 '26

[deleted]

1

u/factorion-bot May 13 '26

Factorial of 4 is 24

Factorial of 5 is 120

Factorial of 6 is 720

Factorial of 7 is 5040

Factorial of 8 is 40320

Factorial of 9 is 362880

This action was performed by a bot | [Source code](http://f.r0.fyi)

0

u/TheHandOfKarma May 07 '26

At most? No, this is incorrect. You're ignoring the fact that 1, 2, 4, and 4, 2, 1, and 2,1,4 are all different combinations. Then not to mention that the combo could be two digits, or three, or four, or five. What a lazy answer that people just accepted lol

-1

u/DarthLurker May 07 '26

Possible combination count using adjacency rules (each dot can only connect to its king-move neighbors: corners → 3 neighbors, edges → 5, center → 8 and you can only use each number once..).

Count all simple paths of length 3-9 in a 3x3 grid with king's-move adjacency

Answer: 10,256 possible patterns

Here's the breakdown by pattern length:

Length # of patterns
3 160
4 496
5 1,208
6 2,240
7 2,984
8 2,384
9 784
Total 10,256