Тема: задачка
Показать сообщение отдельно
(#2)
Старый 13.06.2007
Re: задачка

ответ, к сожалению, нашелся в гугле, и всё оказалось куда проще чем я думал:
Solution: It's actually quite simple After starting the sequence with 1, each term in the sequence consists of groups of two numbers based on the previous term - the first being the quantity and the second specifying which digit.
Example: the first term is 1, which has "one 1" in it, therefore 11.
11 has "two 1's" in it, therefore 21.
21 has "one 2 and one 1" in it and therefore 1211.

//в 1 есть "одна 1", поэтому 11
в 11 есть "две 1", поэтому 21
в 21 есть "одна 2 и одна 1", следовательно 1211
...
Искомым членом последовательности соответственно будет:1113213211
Вот и всё решение =)
rupatriot rupatriot вне форума
Присматривается
rupatriot Первый уровень
 
Аватар для rupatriot
 
Регистрация: 03.10.2005
Сообщений: 99 шт.
Карма: 9 бал.