Jump to content
BrainDen.com - Brain Teasers
  • 0


superprismatic
 Share

Question

Make 0246891357 from 0123456789 using

only two permutations P1 and P2 where

P1 is a left circular shift and P2 is

flipping the elements in the first two

pairs. Specifically, P1 will transform

ABCDEFGHIJ into BCDEFGHIJA, and P2 will

transform ABCDEFGHIJ into BADCEFGHIJ.

Use the fewest possible number of moves

where a move consists of an application

of either P1 or P2.

Here's an example which shows a way to

make 0817923456 from 0123456789:


0123456789 Starting position
7890123456 P1 applied 7 times
8709123456 P2
7091234568 P1
0719234568 P2
8071923456 P1 applied 9 times
0817923456 P2
[/code]

for a total of 20 moves.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  Reveal hidden contents

20 moves

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...