Discrete Math Logic Defineing a function recursion-ish

Click For Summary
SUMMARY

The function A(m,n) is defined recursively with specific base cases and rules for m and n. It is established that A(m,2) = 4 for every m ≥ 2 and A(1,n) = 2^n for every n ≥ 1. The proof utilizes mathematical induction, starting with base cases and progressing to the induction step. The discussion emphasizes the importance of correctly applying induction principles to validate the recursive function's properties.

PREREQUISITES
  • Understanding of recursive functions
  • Familiarity with mathematical induction
  • Basic knowledge of discrete mathematics
  • Ability to work with recursive definitions
NEXT STEPS
  • Study the principles of mathematical induction in depth
  • Explore recursive function definitions in discrete mathematics
  • Learn about the Ackermann function as a complex example of recursion
  • Practice proving properties of recursive functions using induction
USEFUL FOR

Students of discrete mathematics, mathematicians focusing on recursion, and anyone interested in understanding mathematical induction and recursive function proofs.

geforce
Messages
26
Reaction score
0
(3) De fine a function A(m,n) as follows.
A(0,n) = 2n for every n.
A(m,0) = 0 for every m >= 1
A(m,n) = 2 if m >= 1 and n = 1
A(m,n) = A(m -1,A(m, n - 1)) otherwise (i.e., if m >= 1 and n >= 2.

(b) Prove A(m,2) = 4 for every m >= 2
(c) Prove A(1, n) = 2^n for every n >= 1.

Proving these by induction

B) Base Case

M>=2

M=2

A(2,2) = A(2-1, A(2, 2-1))

A(2,1) = 2 by rule so

A(2,2) = A(1, 2) = A(1-1, A(1, 2-1))

A(1,1) = 2

So A(1,2) = A(0,2)
A(0,2) = 2n = 2(2) = 4
Finally, A(2,2) = 4

Induction step

K+1 = 3

M>=3

A(3,2) = A(3-1, A(3, 2-1))

A(3,1) = 2

A(2,2) = 4 from before
so A(3,2) = 4

C) Is basically the same solving

My question is for B) C) Should i be using variables like i, j or something like that because i think I'm doing something wrong with proving because it looks a bit too simple.
 
Physics news on Phys.org
have you studied induction ? you have proved the base case. that's fine. now for the induction
case you assume that the statement is true for some [itex]k\geqslant 2[/itex] and then prove that the statement is true for [itex]k+1[/itex]. So for b, assume that

[tex]A(k,2) = 4[/tex]

for some [itex]k\geqslant 2[/itex]. Now prove that the statement is true for [itex]k+1[/itex].

[tex]A(k+1,2) = 4[/tex]
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
2K
Replies
9
Views
2K
Replies
1
Views
2K
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K