The functions f : N → N, g : N 2 → N, and h : N → N are recursively defined as follows:

f(n) = g(n, h(n)) if n ≥ 0,

g(m, 0) = 0 if m ≥ 0,

g(m, n) = g(m, n − 1) + m if m ≥ 0 and n ≥ 1,

h(0) = 1,

h(n) = 2 · h(n − 1) if n ≥ 1.

Solve these recurrences for f, i.e., express f(n) in terms of n.
in Other Math Topics by Level 1 User (200 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

The functions f : N → N, g : N 2 → N, and h : N → N are recursively defined as follows:

Solve these recurrences for f, i.e., express f(n) in terms of n.​

f(n) = g(n, h(n)) if n ≥ 0,
g(m, 0) = 0 if m ≥ 0,
g(m, n) = g(m, n − 1) + m if m ≥ 0 and n ≥ 1,
h(0) = 1,
h(n) = 2 · h(n − 1) if n ≥ 1.
 

h(1) = 2.h(0) = 2*1 = 2

h(2) = 2.h(1) = 2*2 = 4 = 2^2

h(3) = 2.h(2) = 2*4 = 8 = 2^3

h(n) = 2^n

g(m,1) = g(m,0) + m = 0 + m = m

g(m,2) = g(m,1) + m = m + m = 2m

g(m,3) = g(m,2) + m = 2m + m = 3m

g(m,n) = nm

Therefore, g(t, h(t)) = g(t, 2^t) = (2^t)*t

So, f(n) = n.2^n

by Level 11 User (81.5k points)

Related questions

2 answers
asked May 9, 2013 in Word Problem Answers by anonymous | 1.0k views
2 answers
2 answers
asked Apr 23, 2014 in Other Math Topics by Harmony Gipson | 3.4k views
1 answer
asked Jun 28, 2020 in Algebra 1 Answers by Patrick | 454 views
1 answer
asked Aug 24, 2019 by Poop | 349 views
1 answer
1 answer
asked Aug 24, 2017 in Statistics Answers by Vasto Lorde | 436 views
1 answer
1 answer
asked Dec 15, 2015 in Algebra 2 Answers by anonymous | 590 views
1 answer
asked Nov 22, 2015 in Pre-Algebra Answers by Mathical Level 10 User (57.4k points) | 2.3k views
2 answers
1 answer
asked Jul 24, 2014 in Word Problem Answers by SDiaz4450 Level 1 User (180 points) | 737 views
1 answer
asked Aug 28, 2013 in Algebra 1 Answers by anonymous | 1.5k views
1 answer
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!
87,516 questions
100,279 answers
2,420 comments
732,496 users