about | help | code help+videos | done | prefs |
quadruple_minus_3
A sequence of values starts with 2. Each term is found by quadrupling the last term and subtracting 3. Write a function that generates the nth term in the sequence. The first four terms are 2, 5, 17, 65, so if asked for the fourth term the function would return 65. quadruple_minus_3(0) → 2 quadruple_minus_3(1) → 5 quadruple_minus_3(2) → 17 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy