# J (safe)

    0 0 0 0 1 9 495 1287 3003 6435 12870 24310 43758 0 0 0 0 45 165

Range **≤ 8**

### Solution

    8!/:#:!9

[Try it online.][1]

[1]: https://a296a8f7c5110b2ece73921ddc2abbaaa3c90d10.googledrive.com/host/0B3cbLoy-_9Dbb0NaSk9MRGE5UEU/index.html#code=8!%2F%3A%23%3A!9

### How it works

* `!9` calculates the factorial of **9**, i.e., **362880**.

* `#:` converts the result to binary, yielding **1 0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0**.

* `/:` "grades up", i.e., sorts the indices of the above list by the values at those indices.

    This yields **1 4 5 6 8 9 12 13 14 15 16 17 18 0 2 3 7 10 11**.

* `8!` calculates [**nC8**][2] for each **n** from above, returning the specified output.

[2]: https://en.wikipedia.org/wiki/Combination