Smallest power of 6 whose decimal expansion contains n: Difference between revisions
Smallest power of 6 whose decimal expansion contains n (view source)
Revision as of 17:04, 7 April 2021
, 3 years ago→{{header|Ring}}
m (→{{header|Pascal}}: typo) |
|||
Line 405:
ind = substr(strpow,strn)
if ind > 0
see "" + n + ". " +
exit
ok
Line 417:
working...
Smallest power of 6 whose decimal expansion contains n:
1.
2.
3.
4.
5.
6. 6^1
7.
8. 6^12 = 2176782336
9.
10.
11. 6^16 = 2821109907456
12.
13.
14. 6^28 = 6140942214464815497216
15. 6^18 = 101559956668416
16.
17.
18. 6^15 = 470184984576
19. 6^21 = 21936950640377856
20. 6^26 = 170581728179578208256
21.
done...
</pre>
|