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 09:49, 7 April 2021
, 3 years ago→{{header|Factor}}: simplify somewhat
m (made sure that the power is supposed to be an non-negative integer, no fair taking square roots or using negative powers.) |
m (→{{header|Factor}}: simplify somewhat) |
||
Line 16:
: smallest ( m -- n )
present powers-of-6
22 [ dup smallest commas "%2d %s\n" printf ] each-integer</lang>
|