how do I find the output if the input is1
Replace every variable that you're inputting that 1 for with 1 and then evaluate the expression like normal.
For example, say you have x+10 the input is x = 1, so replace x with 1 to get 1+10 = 11, so the output is 11
Do you use the recursive definition to solve it?
no, just evaluate the expression as if it were a normal arithmetic expression
are you working with recursive structures?
thank you
do you have the actual problem?
yes,make a table of the function values for inputs between 0 and 10 then find a closed form definition that agrees with the table use your closed form definition to find the outputs at 103,104, and 245. g(n)= 0 if n=0 g(n-1)+1 if n>0
if n = 1, then g(1) = g(0) + 1 = 0+1= 1 if n = 2, then g(2) = g(1) + 1= 1+1 =2 if n = 3, then g(3) = g(2)+1 = 2+1 = 3 see the pattern?
see a pattern but still confused lol
it's simply increasing by 1 (since g(n-1)+1 means, literally, take the previous output and add 1 to it to get the new/next output) So plug in 4, you get one more than 3 which is 4 Plug in 17, you get one more than 16 (17) Plug in x, you get x So plug in 103, you get 103, etc...
k thanks going to try it, be back in a few and let you know how it's going thank you
Join our real-time social learning platform and learn together with your friends!