Activity for SherlockSage
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Edit | Post #281807 | Initial revision | — | over 5 years ago |
| Answer | — |
A: Juggler sequences [APL (Dyalog Unicode)], 15 bytesSBCS With many thanks to Marshall Lochbaum and dzaima for their help debugging and golfing this answer {⍵∪⌊⍵2|⍵+.5}⍣≡ ``` {⍵∪⌊⍵2|⍵+.5}⍣≡ ⍝ ⍵ is our input of either n or our intermediate results { }⍣≡ ⍝ run until we reach a fixed poin... (more) |
— | over 5 years ago |
| Edit | Post #281806 | Initial revision | — | over 5 years ago |
| Answer | — |
A: Juggler sequences [Python 3], 64 bytes def f(n): z=[n] while n>1:n=int(n((n+.5)%2));z+=n, return z Try it online! (more) |
— | over 5 years ago |
