2
\$\begingroup\$

Your program must print out this exact sequence:

1
2
4
10
24
54
116
242
496
1006
2028
4074
8168
16358
32740
65506
131040
262110
NOPE!

As usual, shortest program wins. Standard code golf rules apply.

\$\endgroup\$
12
  • 3
    \$\begingroup\$ How did you come up with this sequence and why does it end where it does? \$\endgroup\$
    – dylnan
    Commented Dec 27, 2017 at 20:25
  • 1
    \$\begingroup\$ @dylnan It's your task to find the rule :) \$\endgroup\$
    – Mr. Xcoder
    Commented Dec 27, 2017 at 20:25
  • 12
    \$\begingroup\$ @Mr.Xcoder that's silly. As soon as anyone finds the rule it will be obvious in their code. \$\endgroup\$
    – Sparr
    Commented Dec 27, 2017 at 21:04
  • 3
    \$\begingroup\$ Why are you printing NOPE!? Once you have the sequence you can continue it. \$\endgroup\$
    – Edmund
    Commented Dec 27, 2017 at 21:09
  • 16
    \$\begingroup\$ IMO the NOPE! just makes each submission longer by about 10 bytes, and doesn’t serve any purpose when it comes to making the challenge more interesting. \$\endgroup\$
    – Mr. Xcoder
    Commented Dec 27, 2017 at 21:15

31 Answers 31

1
2
0
\$\begingroup\$

Deadfish~, 530 bytes

{iiiii}dc{dddd}ic{iiii}c{dddd}c{iiii}iic{dddd}ddc{iiii}dcdc{dddd}iic{iiii}ciic{dddd}ddc{iiii}iiicdc{dddd}ddc{iiii}dcciiiiic{dddd}ddddc{iiii}ciicddc{dddd}c{iiii}iiciiiiicdddc{dddd}ddddc{iiii}dcdcciiiiiic{dddd}ddddc{iiii}cddciiciiiiiic{dddd}ddddddc{iiii}iicddddc{i}dddcdddc{dddd}ddc{iiii}iiiiiic{d}iiiciiiiiciic{dddd}ddddddc{iiii}dciiiiicdddciiciiic{dddd}ddddddc{iiii}icdciiiiicdddcddddc{dddd}iic{iiii}iiiicdccdddddciiiiiic{dddd}ddddc{iiii}dciicddcdciiiicddddc{dddd}iic{iiii}ciiiicddddcdccdc{dddd}iic{{i}ddd}ddcicic{d}dc{ddd}ddddddc

Try it online!

\$\endgroup\$
1
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.