Finding Solutions to a Discrete Math Function Problem

In summary: Ah, ha! Here's a BIG hint. You have f(n+3)f(n+2)=f(n+1)+f(n)+18. Get another equation by substituting n+1 for all of the n's in that equation and subtract the two equations. Can you use that to show f(n+3)*(f(n+4)-f(n+2))=f(n+2)-f(n)?In summary, Dick showed that if you have a function f(n) that is not the same as 1 or 18, then you can find two solutions by solving for f(n+1) and f(n+2).
  • #1
axon23
4
0
Hi
I need some help with the following problem:

1. Find all functions f: Z+ -> Z+ such that for each n Є Z+ we have f(n) > 1 and
f(n + 3)f(n + 2) = f(n + 1) + f(n) + 18

2. I've been reading everywhere and I can't seem to find anything like this. I was wondering if anybody knew where to start
3. I was thinking of trying one to one, but it doesn't make sense. Then induction but I don't think I can conclude anything from that either.

Thanks for your help
 
Physics news on Phys.org
  • #2
Hmmm, what I tried to do is say f(0) = a, f(1) = b, f(2) = c, and then see if a pattern emerges that would let you determine what values of a, b, and c work. Maybe write a program so that you can get more values, maybe use TI-89 basic?

That's a tough problem.
 
  • #3
i already wrote a program to try many different functions with different values and i get that there are no solutions.. but i just don't know how to get to that point.
 
  • #4
Ah, I see what you're saying. Ummmm... If you keep a, b, and c general can you show that the limit of f(n, even) as n approaches infinity is 1? I'll try that.
 
  • #5
If you fish around you can find f_n={2,20,2,20,2,20,...} works, so I wouldn't try to prove there are no solutions. But I don't see how to tackle it in general. It does look hard. Unless there is a trick.
 
  • #6
Ah, ha! Here's a BIG hint. You have f(n+3)f(n+2)=f(n+1)+f(n)+18. Get another equation by substituting n+1 for all of the n's in that equation and subtract the two equations. Can you use that to show f(n+3)*(f(n+4)-f(n+2))=f(n+2)-f(n)?? That's your BIG hint. Here's a LITTLE hint. Remember f(n+3)>1. This tells you a lot about the behavior of the differences of alternating terms. Use it to draw an important conclusion about alternating terms.
 
  • #7
Dick said:
Ah, ha! Here's a BIG hint. You have f(n+3)f(n+2)=f(n+1)+f(n)+18. Get another equation by substituting n+1 for all of the n's in that equation and subtract the two equations. Can you use that to show f(n+3)*(f(n+4)-f(n+2))=f(n+2)-f(n)?? That's your BIG hint.

Just curious, what made you think of doing that?
 
  • #8
Alex6200 said:
Just curious, what made you think of doing that?

First, I did the same thing you and axon23 did. I wrote a computer program to generate examples of such sequences starting with arbitrary initial data. Observed that in the general case, ignoring the restriction to integers greater than 1 that the sequence still converged to one with alternating terms nearly equal. Wondered, why? Guessed that the '18' didn't have much to do with it. Did the obvious thing to eliminate the '18', subtracting two shifted versions of the recursion relation. Found gold. In brief, I just 'messed around with it' for a while. I don't think there is any system to solve problems like this. Now, I'm just curious. Did you solve the problem?
 
Last edited:
  • #9
Haven't solved it yet. Still thinking about it.
 
  • #10
More hints follow. f(n+4)-f(n+2)=0 iff f(n+2)-f(n)=0. So differences are either all nonzero or all zero. Which is it? If nonzero then, |f(n+4)-f(n+2)|<|f(n+2)-f(n)| that's an infinitely decreasing series of positive integers. Is there such a thing? How many more hints do you need?
 
Last edited:
  • #11
Ohhh... I think I got it. If f(5) is not the same as f(3), and so on, then it's not going to be a valid function f(n) because it will eventually go to 1 or below one. So for a valid f(n):

f(n+2) = f(n), so our equation

f(n+3)f(n+2) = f(n+1) + f(n) + 18

becomes

f(n+1)f(n) = f(n+1) + f(n) + 18,

f(n+1) = (f(n) + 18) / (f(n) - 1)

So my solution is, with C = f(1) being the initial condition:

f(n, even) = (C + 18) / (C - 1)
f(n, odd) = C

so if C = 2:

f(n) = 2,20,2,20,2,20...

That was an interesting problem. Thanks for the help Dick.
 
  • #12
There are actually two solutions. 20,2,20,2,20,.. works as well.
 

1. What is a function in discrete math?

A function in discrete math is a relation between two sets where each element of the first set is paired with exactly one element of the second set. It assigns a unique output value to each input value.

2. How is a function represented in discrete math?

A function can be represented in different ways, such as a table of input-output pairs, a graph, or a formula. In discrete math, a function is commonly represented as a set of ordered pairs, where the first element is the input and the second element is the output.

3. What is the domain and range of a function?

The domain of a function is the set of all possible input values, while the range is the set of all possible output values. In other words, the domain is the set of values that can be plugged into the function, and the range is the set of values that the function can produce.

4. Can a function have more than one output for a single input?

No, a function in discrete math must have a unique output value for each input value. If there are multiple output values for a single input, then it is not considered a function.

5. How do you determine if a relation is a function?

To determine if a relation is a function, you can use the vertical line test. If a vertical line can be drawn through the graph of the relation and only touches one point at a time, then it is a function. Additionally, you can check if each input has a unique output value in the relation's domain and range.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
415
  • Calculus and Beyond Homework Help
Replies
9
Views
927
  • Calculus and Beyond Homework Help
Replies
1
Views
504
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
549
  • Calculus and Beyond Homework Help
Replies
17
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
389
  • Calculus and Beyond Homework Help
Replies
2
Views
486
  • Calculus and Beyond Homework Help
Replies
8
Views
468
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Back
Top