309
Объяснение:
F(1) = 1
F(2) = 3
F(n) = F(n – 1) * n + F(n – 2) * (n – 1) при n > 2
Немного посчитаем подставляя значения n и предыдущих F(n)
n = 3 F(1) = 1 F(2) = 3
F(3) = F(3 – 1) * 3 + F(3 – 2) * (3 – 1) = F(2) * 3 + F(1) * 2 = 3 * 3 + 1 * 2 = 9 + 2 = 11
n = 4 F(2) = 3 F(3) = 11
F(4) = F(4 – 1) * 4 + F(4 – 2) * (4 – 1) = F(3) * 4 + F(2) * 3 = 11 * 4 + 3 * 3 = 44 + 9 = 53
n = 5 F(3) = 11 F(4) = 53
F(5) = F(5 – 1) * 5 + F(5 – 2) * (5 – 1) = F(4) * 5 + F(3) * 4 = 53 * 5 + 11 * 4 = 265 + 44 = 309
Объяснение:
No or not?
Grammar > Easily confused words > No or not?
из English Grammar Today
No and not are the two most common words we use to indicate negation. We use no before a noun phrase:
There’s no address on the envelope.
[parent to child]
No biscuits before dinner!
No decisions have been made.
We use not with any other phrase or clause:
It’s not often that you stop and think about the way you breathe.
Not suitable for children under 15.
Not surprisingly, it was a tense match but eventually the more experienced Australians won.
A:
Do you go cycling all year round?
B:
Not in the winter.
у меня получилось 61
Объяснение:
N = 2
counter = 1
for i in range(1, 10000000):
binary = str(bin(N)[2:])
print(binary)
first_numbers = binary[:2]
temp_list = list(binary)
if temp_list[-1] == '0':
temp_list[-1] = first_numbers
print(temp_list)
temp_list.reverse()
print(temp_list)
result_join = ''.join(temp_list)
print(result_join)
result_int = int(result_join, 2)
if result_int == 127:
print(result_int)
print('counter', counter)
break
N += 1
counter += 1
Если подумать, то можно этот код сократить. А так пишется недолго и легко (если решение правильное:) )