Question

Are the following statements true or false? 1. Let a be the sequence of numbers defined...

Are the following statements true or false?

1. Let a be the sequence of numbers defined by the rules a0 = 0 and, for any n, an+1 = (n + 1) - an. Then for any natural n, an is the natural denoted in Java by "n/2".

2. Let f be any function from naturals to naturals and let g(n) be the sum, for i from 1 to n, of f(i). Suppose I have a function h from naturals to naturals that satisfies the property that for any natural n, h(n+1) = h(n) + f(n+1). Then g and h must be the same function.

3. Let the function z(n), from naturals to integers, be defined by the rules z(0) = 1, and for any natural n, z(2n) = z(n)2 and z(2n+1) = -z(n)2. Then we can prove by strong induction that for any natural n, z(n) = (-1)n.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Let a be the sequence of numbers defined by the rules a0 = 0 and, for any n, an+1 = (n + 1) - an. Then for any natural n, an is the natural denoted in Java by "n/2".

Answer:

a1 = 2 - a0 = 2

a2 = 3 - a1 = 1

a3 = 4 - 1 = 3

Clearly, an != n/2, hence the statement is false.

2. Let f be any function from naturals to naturals and let g(n) be the sum, for i from 1 to n, of f(i). Suppose I have a function h from naturals to naturals that satisfies the property that for any natural n, h(n+1) = h(n) + f(n+1). Then g and h must be the same function.

This statement is true.

h(1) = h(0) + f(1) = f(1) considering h(0) = 0

h(2) = h(1) + f(2) = f(1) + f(2)

h(3) = h(2) + f(3) = f(1) + f(2) + f(3) and so on.

NOTE: As per Chegg policy I am allowed to answer specific number of questions (including sub-parts) on a single post. Kindly post the remaining questions separately and I will try to answer them. Sorry for the inconvenience caused.

Add a comment
Know the answer?
Add Answer to:
Are the following statements true or false? 1. Let a be the sequence of numbers defined...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT