Search Header Logo
Recursive Functions

Recursive Functions

Assessment

Presentation

Mathematics, Computers

6th - 8th Grade

Medium

Created by

Atharv (KMS)

Used 15+ times

FREE Resource

4 Slides • 6 Questions

1

Recursive Functions

Recursive Functions :)

2

Multiple Choice

What is the 10th number in the fibonacci series starting from 0, 1?

If you don't know, guess.

1

13

2

21

3

34

4

55

3

The ​Fibonacci Series

​The Fibonacci series continues by adding the last two numbers together and continuing on.

It starts with 0 and 1 (or 1 and 1, depending on how you like it)​

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

Fibonacci series

4

​Fibonacci Function

The function

5

Multiple Choice

This is the factorial function.

f(0) = 1f\left(0\right)\ =\ 1  

f(n) = f(n  1)  nf\left(n\right)\ =\ f\left(n\ -\ 1\right)\ \cdot\ n     if n > 0if\ n\ >\ 0  

Calculate f(6)f\left(6\right)  

1

72

2

120

3

64

4

720

5

640

6

​How to Solve

Some text here about the topic of discussion

7

Multiple Choice

h(x)=h(x  7) + 1h\left(x\right)=h\left(x\ -\ 7\right)\ +\ 1   if x > 5if\ x\ >\ 5  

h(x) = xh\left(x\right)\ =\ x   if 0x5if\ 0\le x\le5  

h(x) = h(x + 3)h\left(x\right)\ =\ h\left(x\ +\ 3\right)   if x < 0if\ x\ <\ 0  

What is h(13)?h\left(13\right)?  

1

4

2

3

3

2

4

1

8

Open Ended

If x is odd, f(x) = f(3x + 1)

If x is even, f(x) = f(x / 2)

What is this famous sequence called (it has 7 letters in its name)?

9

Multiple Choice

f(x, y) = f(x  y, y  1)+2f\left(x,\ y\right)\ =\ f\left(x\ -\ y,\ y\ -\ 1\right)+2   if x > yif\ x\ >\ y  

f(x, y) = x + yf\left(x,\ y\right)\ =\ x\ +\ y   otherwiseotherwise  

Find f(12, 6)f\left(12,\ 6\right)  

1

17

2

9

3

5

4

13

10

Multiple Choice

Question image
1

11

2

-9

3

-3

4

7

5

10012

Recursive Functions

Recursive Functions :)

Show answer

Auto Play

Slide 1 / 10

SLIDE