The part 110101111 is 1+2+4+8+32+128+256 = <span>431
The part after the dot is 1/2 + 1/4 + 1/16 + 1/32 = </span>0.84375
Together that's 431.84375
For Plato users it's
2. BLOb
Answer:
#here is code in python
#recursive function to find nth Fibonacci term
def nth_fib_term(n):
#if input term is less than 0
if n<0:
print("wronng input")
# First Fibonacci term is 0
elif n==0:
return 0
# Second Fibonacci term is 1
elif n==1:
return 1
else:
#find the nth term of Fibonacci sequence
return nth_fib_term(n-1)+nth_fib_term(n-2)
n=int(input("please enter the term:"))
print(n,"th Fibonacci term is: ")
print(nth_fib_term(n))
Explanation;
Read the term "n" which user wants to know of Fibonacci sequence.If term term "n" is less than 0 then it will print "wrong input". Otherwise it will calculate nth term of Fibonacci sequence recursively.After that function nth_fib_term(n) will return the term. Print that term
Output:
please enter the term:7
7 th Fibonacci term is:
13
Answer 1 it’s online banking