id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu > evangelist
prev  |  next  |  chance

The first two numbers of the Evangelist series are 2 and 5. The third is 7, the sum of the first two Evangelist numbers. Each successive Evangelist number is the sum of the Evangelist numbers that are 1 and 2 positions earlier in the sequence. The Evangelist numbers are 2, 5, 7, 12, 19, 31, 50, 81, 131, 212, 343, 555, 898, 1453, 2351, 3804, 6155 and so on.


evangelist(0) → 2
evangelist(1) → 5
evangelist(2) → 7

...Save, Compile, Run (ctrl-enter)

public int evangelist(int n){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy