• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Next numbers in series...

 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, this is an oldie but a goodie...
1, 11, 21, 1211, 111221, 312211, ???
For the moment, if you get it, why not just post the next few and let other people go mad? ;-)

~ Tim
 
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tim West:

1, 11, 21, 1211, 111221, 312211, ???


13112221,1113213211,31131212131221,1321131112111213112211,.....

who will write a program now?
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ram Abdullah D'Souza:

13112221,1113213211,31131212131221,1321131112111213112211,.....

who will write a program now?


for what? telling how many ones and twos are there
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ummm...can you PLEASE explain that one to me? it had me going
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1, 11, 21, 1211, 111221, 312211, ???

--------------------------------------------------------------------------------


13112221,1113213211,31131212131221,1321131112111213112211,.....
okokok it goes like this

in each number, two digits are used to represent a particular digit or the same consecutive digit in the previous number. The first digit is the number of times it is been repeated and the second digit is the value of the digit.

For example : First number = 1
Second number = "one" 1 = 11 --> because there is one one
Thrird number = 21 -->(beacause there is 2 ones )
Fourth number = 1211 -->(becaouse there is one 2 and one 1 )
continuing similarly...
111221, 312211, 13112221,1113213211,31131212131221,1321131112111213112211 ...

Hope u got my explanation

now someone write the program to do this
 
Ranch Hand
Posts: 999
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this should work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic