Ask a New Question

Asked by Suze

Let N N denote the natural numbers {1,2,3,4,...}. Observe a f that satisfies f(1)=1, f(2n)=f(n), f(2n+1)=f(2n)+1 for all n that are natural numbers. Write a algorithm for f(n).
8 years ago

Answers

Answer
f(1)=1
f(2)=1
f(3)=2
f(4)=2
f(5)=3
f(6)=3
So f(n) will be ⌈n/2⌉
2 years ago
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions

If N is the set of natural numbers that are factors of 20, choose the selection below that correctly... which of these are natural numbers TT,9,6.75,5.966 If N is the set of natural numbers that are factors of 16, choose the selection below that correctly... If N is the set of natural numbers that are factors of 16. If N is the set of natural numbers that are factors of 24, choose the selection below that correctly... If N is the set of natural numbers that are factors of 16, choose the selection below that correctly... If N is the set of natural numbers that are factors of 20, choose the selection below that correctly... If a and b are two natural numbers such that (a)^b =36 , then find the value of (b)^a-2. If n is the set of natural numbers that are factors of 16, what is the set in roster form? My ans... 28. If x and y are natural numbers, find the number pairs (x, y) for which x^2 - y^2 = 31.
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use