How many distinct line-segment patterns -- of varying lengths from 2 dots / 1 segment, up to 9 dots / 8 segments -- can be drawn on those 3x3 dot grids, like the phone unlock screen on Android phones?
0 1 2
3 4 5
6 7 8
- Patterns connect dots/digits in straight line segments -- no curves, no anchors outside the grid, etc
- Patterns must contain at least 1 line segment (2 dots/digits)
- Patterns cannot include the same dot/digit more than once
- However, if a dot/digit is already used in the pattern, that dot/digit can be "skipped over" to reach a dot/digit past it (continuing in a straight line); so a pattern like 1-4-2-0 is legal, because the 2-0 segment "skips over" the 1 that's already in the pattern
There are:
- 56 distinct patterns of exactly 2 dots/digits, and 389,488 distinct patterns of at least 2 dots/digits
- 320 distinct patterns of exactly 3 dots/digits, and 389,432 distinct patterns of at least 3 dots/digits
- 1,624 distinct patterns of exactly 4 dots/digits, and 389,112 distinct patterns of at least 4 dots/digits
- 7,152 distinct patterns of exactly 5 dots/digits, and 387,488 distinct patterns of at least 5 dots/digits
- 26,016 distinct patterns of exactly 6 dots/digits, and 380,336 distinct patterns of at least 6 dots/digits
- 72,912 distinct patterns of exactly 7 dots/digits, and 354,320 distinct patterns of at least 7 dots/digits
- 140,704 distinct patterns of exactly 8 dots/digits, and 281,408 distinct patterns of at least 8 dots/digits
- 140,704 distinct patterns of exactly 9 dots/digits