Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    \$\begingroup\$ Have you tried using the sequence operator ...? It makes sequence stuff like this a lot easier. For example, your my@a=1,2;push @a,operation while condition can be 1,2,{operation}...condition. With a few other golfs, this can be as low as 49 bytes \$\endgroup\$ Commented Mar 21, 2019 at 3:37
  • \$\begingroup\$ Not sure if that'd work here because the next term depends on all of the previous terms. \$\endgroup\$ Commented Mar 21, 2019 at 5:18
  • \$\begingroup\$ 67 (0-indexing is allowed though, so this could be 65) \$\endgroup\$ Commented Mar 21, 2019 at 5:38
  • \$\begingroup\$ Derp, didn't come to my mind that there was .first. \$\endgroup\$ Commented Mar 21, 2019 at 5:39
  • 1
    \$\begingroup\$ O_o well that was a big jump. it'd be nice if you could link to TIO though \$\endgroup\$ Commented Mar 21, 2019 at 5:44