I’d like to ask the good people of this community that, if you do know the solution or figure it out, that you not share the answer here. Feel free to announce your success, but there’s something to be said for discovering the answer completely unaided, even if it takes years.

It’s embarrassingly obvious once you see it though.

  • Lembot_0006@programming.dev
    link
    fedilink
    arrow-up
    16
    ·
    il y a 5 mois

    This kind of puzzle is very lazy for creators: just make the function more complicated and/or increase the amount of parameters and this makes the puzzle drastically more difficult.

    The method of solving is just brute force. Boring. Uninspiring.

    • missingno@fedia.io
      link
      fedilink
      arrow-up
      30
      ·
      il y a 5 mois

      The function is not complicated, and the solution does not require brute force. In fact, it’s quite elegant in its simplicity.

      And when you get it, you then get to take a step back and admire how the creator was able to set up the numbers given to almost point to the red herring answer. Not a lazy puzzle at all.

    • starik@lemmy.zip
      link
      fedilink
      arrow-up
      10
      ·
      il y a 5 mois

      That’s what makes me think it’s not a math puzzle. If it turns out to be like “divide by 3, add 2, multiply by 2, add 4,….” it wouldn’t be very interesting.

    • zout@fedia.io
      link
      fedilink
      arrow-up
      6
      ·
      il y a 5 mois

      It’s not that lazy, the answer seems to be 15, but then the final 7 would be wrong. Turns out you have to use a totally different function. Both functions are very simple.