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

 

simona1@sfusd.edu recursion3 > invertedLucas
prev  |  next  |  chance

The first inverted Lucas number is 1. The second is -3. Each subsequent inverted Lucas number is the differene of the previous two. The first 10 inverted Lucas numbers are 1, -3, 4, -7, 11, -18, 29, -47, 76 and -123.


invertedLucas(0) → 1
invertedLucas(1) → -3
invertedLucas(2) → 4

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

public int invertedLucas(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