1,11,21,1211,111221,=---------? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

1,11,21,1211,111221,=---------?

coding

14th Sep 2018, 1:14 PM
Kalyan Prasad K
Kalyan Prasad K - avatar
5 Antworten
+ 3
1 is one 1 (11) 11 is two 1s (21) 21 is one 2 and one 1 (1211) 1211 is one 1, one 2 and two 1s (111221) You get each number by reading the previous number as a sequence of digits and saying how often each digit appears. Does that make sense? 😄
14th Sep 2018, 2:48 PM
Anna
Anna - avatar
+ 4
312211 https://code.sololearn.com/cKKTm1DH7rrc/?ref=app If this doesn't answer your question, let me know
14th Sep 2018, 2:30 PM
Anna
Anna - avatar
+ 2
I think it was this: first you start with a 1 in the next line you write how many of what there are: 1. 1 2. 11 3. 21 4. 1211 2. there is one one. 3. there are two ones 4. there is one two and one one
14th Sep 2018, 2:49 PM
Anton Böhler
Anton Böhler - avatar
+ 1
#Anna #thanks for your explaining
14th Sep 2018, 2:53 PM
Kalyan Prasad K
Kalyan Prasad K - avatar
0
can u explain it
14th Sep 2018, 2:35 PM
Kalyan Prasad K
Kalyan Prasad K - avatar