+ 2
Challenge sequence 1,3,7,13,21,43,57,73,91,111,157,183,211. All language welcome
all languages are welcome...code it
20 Answers
+ 7
every 4 subtraction they follow the pattern of increasing by 2.
3-1=2,7-3=4,13-7=6,21-13=8
To produce number 43:you say 21-13=8
in that 8 you add 6 which makes 14 and 14 is the difference between 43 and 57 .now if you add the differences of of 8 and 14 you get 22 which is the difference between 21 and 43.
Now the pattern continues (4 subtraction)from the number 43 and 57 which have the difference of 14
...the numbers 57 and 73 have difference of 16 and there problem solved!
+ 8
here is it...revised and corrected code
https://code.sololearn.com/cH87sH7q9nNe/?ref=app
+ 4
my try in cpp
https://code.sololearn.com/cYiyfc69oqxW/?ref=app
+ 4
@Saurabh
can you give more numbers?
one more row
+ 4
😁😜
+ 3
is that the fibonazi? i may try.
+ 3
i got the logic
+ 2
I couldn't fully understand the sequence..
https://code.sololearn.com/cZXmCgT5jUEq/?ref=app
+ 2
this logic can be obtained in two ways....one that is posted by @Space_hunky
+ 1
you have to find the logic...that's the challenge
0
What is the logic of this sequence ?
0
@sayan chandra...the sequence is correct
0
yes dear...you got it almost near...but sequence is correct
0
so...
31 and 133 wont be in the sequence?????
0
yupp
0
@@ SAURABH SHAH
see the code now...
i changed it..
its perfect now
0
@@sayan chandra
well tried...
0
@space_hunky
yes...why not..stay tuned
- 1
actually this question was asked in the interview...I thought if I share this questions it will be helpful for all of us