Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Probability of rolling all 6 dice faces

Thunno 2, 14 bytes 6RẉDæḳ6R⁼;,ḷẸ\ Attempt This Online! Note: brute-force, so times out for $n\ge5$ on ATO, but I have verified it with $n=6$ on my computer. Explanation 6RẉDæḳ6R⁼;,ḷẸ\ # Imp...

posted 10mo ago by Thonnu‭

Answer
#1: Initial revision by user avatar Thonnu‭ · 2023-07-08T15:55:58Z (10 months ago)
# [Thunno 2](https://github.com/Thunno/Thunno2), 14 bytes

```
6RẉDæḳ6R⁼;,ḷẸ\
```

[Attempt This Online!](https://ato.pxeger.com/run?1=m728JKM0Ly_faMGCpaUlaboWO82CHu7qdDm87OGOzWZBjxr3WOs83LH94a4dMUuKk5KLoaoWLDSDMAA)

Note: brute-force, so times out for \$n\ge5\$ on ATO, but I have verified it with \$n=6\$ on my computer.

#### Explanation

```python
6RẉDæḳ6R⁼;,ḷẸ\  # Implicit input
6R              # Push [1..6]
  ẉ             # Cartesian power with input
   D            # Duplicate the list
    æ    ;      # Filter by:
     ḳ          #  Sorted uniquify
      6R⁼       #  Exactly equal to [1..6]?
          ,     # Pair with original list
           ḷ    # Length of each list
            Ẹ   # Dump
             \  # Swapped divide
                # Implicit output
```