1. No Profile Picture
Junior Member
Devshed Newbie (0 - 499 posts)

Join Date
Aug 2003
Posts
2
Rep Power
0

#### I Need HELP!!

hi everybody ... i know i am very very new to this forum ... but i have been working on an assigment for 3 weeks and i did all the questions except one and this one is most important ... the professor said that the others are easy but this one will make a difference ... so i need to find out this one ... dont get mad i am not trying to force you to my assigment but i do not have any choice ... i tried but no luck so for last chance i decided to join this forum ... i hope no one offended ... so here is my question

Develop an algorithm to build following sequence:

1

11

21

1211

111221

312211

13112221

1113213211

31131211131221

13211311123113112211

......................................?

.......................................?

... i really need coorperation ... hope you understand me and help me a bit ... best regards to all ...
2. You should really do your homework yourself, or else your education money is wasted and so will your input into the industry you choose. If you can't figure it out, you deserve to get no credit for the question.
-Dave
3. No Profile Picture
Junior Member
Devshed Newbie (0 - 499 posts)

Join Date
Aug 2003
Posts
2
Rep Power
0
i did all of them except this one .... and this one is a bonus to me ... thats why i posted this one here ... if i was trying to do my homework online i will post all of the 11 questions here so that i can rid of the questions ... but the problem is no matter i try no luck with this ...

and i am aware that i deserve no credits from this one but at least ideas i need ... then i can figure out what to do
4. Heh, I keep looking at those numbers, but the pattern used to insert the numbers evades me. The last digits keeps alternating from "1" to "11" which doesn't seem logical.

I hope the class you're taking teaches how to find patterns in a set of numbers. Unless you're suppose to recognize some other algorithm in the numbers that you already learned about.

If you only consider the 1's and the number immediately proceding the 1's, then add up the 1's or multiply by the number proceding it:
(bolded numbers are ignored)

1 = 1

11 = 2

21 = 3 (2x1)

1211 = 4 (1+2*1+1)

111221 = 5 (1+1+1+2*1)

312211 = 6 (3*1+2*1+1)

13112221 = 7 (1+3*1+1+2*1)

1113213211 = 8 (1+1+1+2*1+2*1+1)
6. Heh, I did a google and found the answer on a web site using the same numbers.

Now NO cheating!

Hint: It's not a math test, it's a logic test.