Smallest power of 6 whose decimal expansion contains n: Difference between revisions
Content added Content deleted
(Added Wren) |
|||
Line 272: | Line 272: | ||
ind = substr(strpow,strn) |
ind = substr(strpow,strn) |
||
if ind > 0 |
if ind > 0 |
||
see "" + n + ". " + strpow + nl |
see "" + n + ". " + strpow + " - " + m + nl |
||
exit |
exit |
||
ok |
ok |
||
Line 284: | Line 284: | ||
working... |
working... |
||
Smallest power of 6 whose decimal expansion contains n: |
Smallest power of 6 whose decimal expansion contains n: |
||
1. 1 |
1. 1 - 0 |
||
2. 216 |
2. 216 - 3 |
||
3. 36 |
3. 36 - 2 |
||
4. 46656 |
4. 46656 - 6 |
||
5. 46656 |
5. 46656 - 6 |
||
6. 6 |
6. 6 - 1 |
||
7. 7776 |
7. 7776 - 5 |
||
8. 2176782336 |
8. 2176782336 - 12 |
||
9. 1296 |
9. 1296 - 4 |
||
10. 10077696 |
10. 10077696 - 9 |
||
11. 2821109907456 |
11. 2821109907456 - 16 |
||
12. 1296 |
12. 1296 - 4 |
||
13. 13060694016 |
13. 13060694016 - 13 |
||
14. 6140942214464815497216 |
14. 6140942214464815497216 - 28 |
||
15. 101559956668416 |
15. 101559956668416 - 18 |
||
16. 216 |
16. 216 - 3 |
||
17. 60466176 |
17. 60466176 - 10 |
||
18. 470184984576 |
18. 470184984576 - 15 |
||
19. 21936950640377856 |
19. 21936950640377856 - 21 |
||
20. 170581728179578208256 |
20. 170581728179578208256 - 26 |
||
21. 216 |
21. 216 - 3 |
||
done... |
done... |
||
</pre> |
</pre> |
||