Comments on Juggler sequences
Post
Juggler sequences
A Juggler sequence is a sequence that begins with a positive integer
Eventually, once
Given a positive integer
This is code-golf, so the shortest code in bytes wins
Test cases
2: 2, 1
3: 3, 5, 11, 36, 6, 2, 1
4: 4, 2, 1
5: 5, 11, 36, 6, 2, 1
6: 6, 2, 1
7: 7, 18, 4, 2, 1
8: 8, 2, 1
9: 9, 27, 140, 11, 36, 6, 2, 1
10: 10, 3, 5, 11, 36, 6, 2, 1
[Jelly], 7 bytes Ḃ×½ḞµƬ …
4y ago
BQN, 17 bytesSBCS ``` {𝕩∾1 …
4y ago
Scala, 78 67 64 bytes Saved …
4y ago
[Husk], 11 10 bytes U¡λ …
4y ago
JavaScript (Node.js), 73 66 by …
4y ago
[APL (Dyalog Unicode)], 15 byt …
4y ago
Japt, 17 bytes Needs some m …
3y ago
JavaScript, 37 32 bytes Out …
3y ago
[Python 3], 64 bytes …
4y ago
1 comment thread