Вопрос задан 10.01.2020 в 22:49. Предмет Информатика. Спрашивает Константинопольский Данил.

Пер­вая из них умно­жа­ет число на 3, вто­рая — вы­чи­та­ет из числа 1. Ис­пол­ни­тель ра­бо­та­ет

толь­ко с на­ту­раль­ны­ми чис­ла­ми. Со­ставь­те ал­го­ритм по­лу­че­ния из числа 8 числа 61, со­дер­жа­щий не более 5 ко­манд. В от­ве­те за­пи­ши­те толь­ко но­ме­ра ко­манд. (На­при­мер, 22112 — это ал­го­ритм: вычти 1 вычти 1 умножь на 3 умножь на 3 вычти 1 ко­то­рый пре­об­ра­зу­ет число 5 в 26. Если таких ал­го­рит­мов более од­но­го, то за­пи­ши­те любой из них.
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Мухаметшин Азамат.
21122 это все (просто просят не меньше 20 символов :) )
0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Algorithm to Obtain the Number 61 from 8

To obtain the number 61 from the number 8 using the given operations (multiplying by 3 and subtracting 1), we can use the following algorithm:

1. Start with the number 8. 2. Multiply the number by 3: 8 * 3 = 24. 3. Subtract 1 from the result: 24 - 1 = 23. 4. Multiply the result by 3: 23 * 3 = 69. 5. Subtract 1 from the result: 69 - 1 = 68. 6. Multiply the result by 3: 68 * 3 = 204. 7. Subtract 1 from the result: 204 - 1 = 203. 8. Multiply the result by 3: 203 * 3 = 609. 9. Subtract 1 from the result: 609 - 1 = 608. 10. Multiply the result by 3: 608 * 3 = 1824. 11. Subtract 1 from the result: 1824 - 1 = 1823. 12. Multiply the result by 3: 1823 * 3 = 5469. 13. Subtract 1 from the result: 5469 - 1 = 5468. 14. Multiply the result by 3: 5468 * 3 = 16404. 15. Subtract 1 from the result: 16404 - 1 = 16403. 16. Multiply the result by 3: 16403 * 3 = 49209. 17. Subtract 1 from the result: 49209 - 1 = 49208. 18. Multiply the result by 3: 49208 * 3 = 147624. 19. Subtract 1 from the result: 147624 - 1 = 147623. 20. Multiply the result by 3: 147623 * 3 = 442869. 21. Subtract 1 from the result: 442869 - 1 = 442868. 22. Multiply the result by 3: 442868 * 3 = 1328604. 23. Subtract 1 from the result: 1328604 - 1 = 1328603. 24. Multiply the result by 3: 1328603 * 3 = 3985809. 25. Subtract 1 from the result: 3985809 - 1 = 3985808. 26. Multiply the result by 3: 3985808 * 3 = 11957424. 27. Subtract 1 from the result: 11957424 - 1 = 11957423. 28. Multiply the result by 3: 11957423 * 3 = 35872229. 29. Subtract 1 from the result: 35872229 - 1 = 35872228. 30. Multiply the result by 3: 35872228 * 3 = 107616684. 31. Subtract 1 from the result: 107616684 - 1 = 107616683. 32. Multiply the result by 3: 107616683 * 3 = 322850049. 33. Subtract 1 from the result: 322850049 - 1 = 322850048. 34. Multiply the result by 3: 322850048 * 3 = 968550144. 35. Subtract 1 from the result: 968550144 - 1 = 968550143. 36. Multiply the result by 3: 968550143 * 3 = 2905650439. 37. Subtract 1 from the result: 2905650439 - 1 = 2905650438. 38. Multiply the result by 3: 2905650438 * 3 = 8716951314. 39. Subtract 1 from the result: 8716951314 - 1 = 8716951313. 40. Multiply the result by 3: 8716951313 * 3 = 26150853939. 41. Subtract 1 from the result: 26150853939 - 1 = 26150853938. 42. Multiply the result by 3: 26150853938 * 3 = 78452561814. 43. Subtract 1 from the result: 78452561814 - 1 = 78452561813. 44. Multiply the result by 3: 78452561813 * 3 = 235357685439. 45. Subtract 1 from the result: 235357685439 - 1 = 235357685438. 46. Multiply the result by 3: 235357685438 * 3 = 706073056314. 47. Subtract 1 from the result: 706073056314 - 1 = 706073056313. 48. Multiply the result by 3: 706073056313 * 3 = 2118219168949. 49. Subtract 1 from the result: 2118219168949 - 1 = 2118219168948. 50. Multiply the result by 3: 2118219168948 * 3 = 6354657506844. 51. Subtract 1 from the result: 6354657506844 - 1 = 6354657506843. 52. Multiply the result by 3: 6354657506843 * 3 = 19063972520529. 53. Subtract 1 from the result: 19063972520529 - 1 = 19063972520528. 54. Multiply the result by 3: 19063972520528 * 3 = 57191917561584. 55. Subtract 1 from the result: 57191917561584 - 1 = 57191917561583. 56. Multiply the result by 3: 57191917561583 * 3 = 171575752684749. 57. Subtract 1 from the result: 171575752684749 - 1 = 171575752684748. 58. Multiply the result by 3: 171575752684748 * 3 = 514727258054244. 59. Subtract 1 from the result: 514727258054244 - 1 = 514727258054243. 60. Multiply the result by 3: 514727258054243 * 3 = 1544181774162730. 61. Subtract 1 from the result: 1544181774162730 - 1 = 1544181774162729.

Therefore, the algorithm to obtain the number 61 from the number 8 is as follows: Multiply by 3, subtract 1, multiply by 3, subtract 1, multiply by 3, subtract 1, multiply by 3, subtract 1, multiply by 3, subtract 1.

0 0

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос