Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. R Weekly (rweekly@mastodon.social)'s status on Wednesday, 21-Nov-2018 18:36:06 EST R Weekly R Weekly

    Le Monde puzzle [#1075] https://link.rweekly.org/ce7 #rstats #datascience

    In conversation Wednesday, 21-Nov-2018 18:36:06 EST from mastodon.social permalink

    Attachments

    1. Invalid filename.
      Le Monde puzzle [#1075]
      By xi'an from Xi'an's Og

      A Le Monde mathematical puzzle from after the competition:

      A sequence of five integers can only be modified by subtracting an integer N from two neighbours of an entry and adding 2N to the entry.  Given the configuration below, what is the minimal number of steps to reach non-negative entries everywhere? Is this feasible for any configuration?

      As I quickly found a solution by hand in four steps, but missed the mathematical principle behind!, I was not very enthusiastic in trying a simulated annealing version by selecting the place to change inversely proportional to its value, but I eventually tried and also obtained the same solution:

            [,1] [,2] [,3] [,4] [,5]
         -3    1    1    1    1
          1   -1    1    1   -1
          0    1    0    1   -1
         -1    1    0    0    1
          1    0    0    0    0
      

      But (update!) Jean-Louis Fouley came up with one step less!

            [,1] [,2] [,3] [,4] [,5]
         -3    1    1    1    1
          3   -2    1    1   -2
          2    0    0    1   -2
          1    0    0    0    0
      

      The second part of the question is more interesting, but again without a clear mathematical lead, I could only attempt a large number of configurations and check whether all admitted “solutions”. So far none failed.

  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.