All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers > Sequences
Colored triangle (Posted on 2018-12-14) Difficulty: 4 of 5
Begin with a finite sequence of blocks in a row, each in one of 3 colors: red, blue, yellow.

Below each pair of neighboring blocks place a new block with the color rule: If the blocks are the same color use that color but if they are different use the third color.

Example:

r b y y b
 y r y r
  b b b
   b b
    b
How can the color of the last block be easily predicted from the top row?

Note: I don't know the full answer but can solve special cases.

No Solution Yet Submitted by Jer    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: proposed solution | Comment 6 of 10 |
(In reply to proposed solution by xdog)

xdog's rule, as stated, might work for an even number of blocks.  For an odd number of blocks, the rule should be modified to just take the result from step 2, mod 3.  I have not done any real testing of this, but that seems to work better.


For instance,

1 resolves to 1, not 2
2 resolves to 2, not 1
010 resolves to 2, not 1

  Posted by Steve Herman on 2018-12-18 11:01:08
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (16)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information