CrazyEngineers Forum

******************************************
Join CE! | CE Innovator Contest! | Forgot password?
Navigation
Go Back   CrazyEngineers Forum > CE : General Discussions > CE - Quiz | Puzzles | Mathematics
Reply

  1 links from elsewhere to this Post. Click to view. #1 (permalink)
Old 22nd February 2008, 02:47 PM
Good Administrator
 
The_Big_K's Avatar
 
I'm a Crazy Electrical Engineer
Join Date: 26th November 2005
Location: Terra-Firma
Posts: 4,426
Send a message via Yahoo to The_Big_K
Lightbulb Tough Puzzle: The Parrot Sequence - crack it!

Puzzle Taken from Mind and Visual Puzzles! -

The parrot sequence

Gaston owns a clever parrot called Paco which can describe out loud numbers read from a piece of paper displayed in front of him. One day

Gaston tried this funny experiment: he wrote the digit 1 on a sheet and showed it to Paco, who answered “one 1”. Gaston wrote down the parrot’s answer “one 1” or ‘11’ on a new sheet and showed it to Paco, who readily answered “two 1’s”. Again, Gaston wrote down his reply “two 1’s” or ‘21’ on another sheet and showed it to Paco, who replied “one 2, one 1” or ‘1211’... Gaston continued this experiment until he obtained a long sequence of numbers 1, 11, 21, 1211, 111221, 312211, etc... in which each next term is obtained by describing the previous term.

Can you say how many sheets of paper Gaston will need until:

a) the string of digits 333 appears, or
b) the digit 4 occurs in the sequence?

Can you also confirm that the last digit of any term of the parrot sequence is always 1?

The_Big_K is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)
Old 5th March 2008, 11:58 AM
Good Administrator
 
The_Big_K's Avatar
 
I'm a Crazy Electrical Engineer
Join Date: 26th November 2005
Location: Terra-Firma
Posts: 4,426
Send a message via Yahoo to The_Big_K
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

No Takers? Too tough for the CEans?
The_Big_K is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 5th March 2008, 12:32 PM
CE - Addict
 
mahul's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 14th November 2007
Location: kolkata
Posts: 256
Send a message via Yahoo to mahul
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

1) 333 will never appear. this is because for 333 to appear, we would need 333 in the previous sequence too( we got to have 3 three's for three consecutive three's to appear. let us consider the previous sequence was x333y. this can be like x 3's and 3 3's or 3 3's and 3 y's. either way we need to have 3 3's in the previous sequence). reasoning in this way this can only happen if we start off with 3 three's which we did not(we started with 1). hence 333 can never appear.

2) 4 can never appear either. for that we would need xxxx in the previous sequence( where x is any digit). let us consider that the sequence was yxxxxz. this can be like y x's, x x's, x z's or x x's , x x's. in the first case it would rather be spelt as (x+y) x's and in the latter as 2x x's. thus a four can also never appear. in fact the max no that can appear is 3.


3) yes the last digit will always be 1. in fact the last digit will be the always be the no we started with. this can be proved again by contradiction. let the last two digits be xy(where y != 1 and x is any no). now this is actually x y's. since x !=0 , then the previous sequence would also end with a y. and the same would repeat till the first sequence. thus the last digit is always the digit we started with, in this case 1.

proved.
correct _k??
__________________

An apple changed the world, it fell on Newton's head

My Blog

Last edited by mahul : 5th March 2008 at 12:34 PM.
mahul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 15th April 2008, 04:57 PM
CE - Apprentice
 
vissin's Avatar
 
I'm a Crazy Electronics Engineer
Join Date: 15th April 2008
Posts: 32
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

Hmm... I'd like to have a parrot that can count and that has such good hold on English grammar.
vissin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)
Old 17th May 2008, 07:05 AM
CE - Apprentice
 
mdronsubbs's Avatar
 
I'm a Crazy mechanical Engineer
Join Date: 7th April 2008
Location: rockin bangalore
Posts: 38
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

the digits 333 never appears because the whole digits end with 1's and 2's....for 333 to appear the prev digits shud also be the same ..so its not at all possible
mdronsubbs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #6 (permalink)
Old 6th June 2008, 04:00 PM
CE - Newbie
 
I'm a Crazy Computer Science Engineer
Join Date: 28th May 2008
Posts: 7
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

Good one.....................big_K.............

give us dome more
skamthe81 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)
Old 7th June 2008, 11:26 PM
CE - Editor
 
xheavenlyx's Avatar
 
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006
Location: Dubai, UAE
Posts: 566
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

Mahul's explanation is good

Can anyone write a psudo code for this? like give 15 sequences. or 30 sequences etc?

I tore my hair out while trying to write it in Python...good one! give moreee!
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)
Old 8th June 2008, 02:29 AM
CE - Addict
 
mahul's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 14th November 2007
Location: kolkata
Posts: 256
Send a message via Yahoo to mahul
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

I think I got you, but still I would like to confirm. Are you asking us to write a code that generates the parrot sequence?? Maybe take the initial input would be provided by the user?
__________________

An apple changed the world, it fell on Newton's head

My Blog
mahul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)
Old 8th June 2008, 04:36 PM
CE - Editor
 
xheavenlyx's Avatar
 
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006
Location: Dubai, UAE
Posts: 566
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

Yes that. And hell, it can be difficult for new programmers like me. I havent used C for so long. Presently i am on Python.

Actually, just today I wrote the draft code for the parrot seq.

Next step is to take any input and keep writing till <x> sequences are complete.

Yea, so try to write the code. This can be a competition too. We can have coding competitions In the end we can upload these files on celab.tk for ppl to download and test. Code will be reveled LATER.
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)
Old 22nd July 2008, 09:59 PM
CE - Regular Member
 
I'm a Crazy Electronics and Communication Engineer
Join Date: 19th March 2007
Location: Jeddah, Saudi Arabia
Posts: 69
Send a message via AIM to bayazidahmed Send a message via MSN to bayazidahmed Send a message via Yahoo to bayazidahmed
Default Re: Tough Puzzle: The Parrot Sequence - crack it!

break the number, count (by parsing) and display
bayazidahmed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.crazyengineers.com/forum/ce-quiz-puzzles-mathematics/2081-tough-puzzle-parrot-sequence-crack.html
Posted By For Type Date
Uniting Engineers Across The World ! This thread Refback 16th April 2008 11:13 AM


All times are GMT +5.5. The time now is 06:48 AM.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.Ad Management by RedTyger