## Generate the snowflake pattern sequence

A snowflake figure looks like this:

[![1,2,4,8][1]][1]

A few rules govern how many points each ring can have.

* The innermost ring must have between 1 and 8 inclusive points.
* Every other ring must have between 2 and 8 inclusive points.
* To ensure symmetry, every ring must have a integer multiple times as many points as the next smallest ring.

Valid snowflake sequences, from the smallest to the largest ring, include: `1,2,2,6`, `2,4,8`, `3,6`, `8,8,8,8,8`, etc.

Your task is, given a number, output the best configuration of rings.

If there are multiple solutions, find the most aesthetically pleasing one as follows:

* The one with the most unique ring sizes
* Unique ring sizes being equal, the one with the biggest smallest ring. Eg. `2,6` is better than `1,7`.
* If the unique ring sizes and smallest ring are both equal, output the one with the smallest total number of rings.

If there are still multiple options, you may choose one arbitrarily.

## Test Cases

| Number | Pattern | Image |
| ------ | ------- | ----- |
| 1      | `1`     | [![1][2]][2]
| 2      | `2`     | [![2][3]][3]
| 3      | `1,2`   | [![1,2][4]][4]
| 4      | `1,3`   | [![1,3][5]][5]
| 5      | `1,4`   | [![1,4][6]][6]
| 6      | `2,4`   | [![2,4][7]][7]
| 7      | `1,2,4` | [![1,2,4][8]][8]
| 8      | `2,6`   | [![2,6][9]][9]
| 9      | `1,2,6` | [![1,2,6][10]][10]
| 10     | `1,3,6` | [![1,3,6][11]][11]
| 11     | `1,2,8` | [![1,2,8][12]][12]
| 12     | `4,8`   | [![4,8][13]][13]
| 13     | `1,4,8` | [![1,4,8][14]][14]


[![1][2]][2]
[![2][3]][3]
[![1,2][4]][4]
[![1,3][5]][5]
[![1,4][6]][6]
[![2,4][7]][7]
[![1,2,4][8]][8]
[![2,6][9]][9]
[![1,2,6][10]][10]
[![1,3,6][11]][11]
[![1,2,8][12]][12]
[![4,8][13]][13]
[![1,4,8][14]][14]


  [1]: https://i.sstatic.net/wwEG5.png
  [2]: https://i.sstatic.net/Z02Uz.png
  [3]: https://i.sstatic.net/duzzA.png
  [4]: https://i.sstatic.net/PFdcY.png
  [5]: https://i.sstatic.net/Kxmrl.png
  [6]: https://i.sstatic.net/2Zszn.png
  [7]: https://i.sstatic.net/SJNTJ.png
  [8]: https://i.sstatic.net/uRrf9.png
  [9]: https://i.sstatic.net/ZkNf2.png
  [10]: https://i.sstatic.net/3rbdC.png
  [11]: https://i.sstatic.net/8eSRH.png
  [12]: https://i.sstatic.net/82PKz.png
  [13]: https://i.sstatic.net/LPZoo.png
  [14]: https://i.sstatic.net/QxaLJ.png