+ 2

Can you find the following sequence to n number... 3,4,7,11,18...to n term and make program.

19th Mar 2018, 3:06 AM
Bibek
Bibek - avatar
9 Respostas
19th Mar 2018, 3:31 AM
Manorama
Manorama - avatar
+ 13
https://code.sololearn.com/c6ErdwUmKLPK/?ref=app //change 1st and 2nd term to 3 & 4 respectively
19th Mar 2018, 8:29 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 7
Mathematical definition of this pattern fn = f(n-1) + f (n-2) f1 = 3 f2 = 4
19th Mar 2018, 5:24 AM
code learner
code learner - avatar
19th Mar 2018, 7:03 AM
Oma Falk
Oma Falk - avatar
+ 4
https://code.sololearn.com/c21y4M23hfBC/?ref=app
19th Mar 2018, 3:18 AM
Louis
Louis - avatar
+ 3
@Manorama... just to clarify...that your logic is perfectly fine... though...please change the name to any other name as fibonacci series starts with 1...and..1-1-2-3-5-8-13 these is the fibonacci series... 4 not belongs to this series... # for who dnt know abut this may be misguided...by the name
20th Mar 2018, 3:52 AM
sayan chandra
sayan chandra - avatar
+ 2
@thanks for responce...
20th Mar 2018, 4:14 AM
sayan chandra
sayan chandra - avatar
+ 1
@sayan thank you.... done
20th Mar 2018, 3:56 AM
Manorama
Manorama - avatar
31st Mar 2018, 2:42 PM
D Janapriya
D Janapriya - avatar