Smallest power of 6 whose decimal expansion contains n: Difference between revisions

Content added Content deleted
(added pascal version)
Line 89: Line 89:


=={{header|Pascal}}==
=={{header|Pascal}}==
{{Works with|Freepascal}}
{{Works with|Free Pascal}}
Doing long multiplikation like in primorial task.
Doing long multiplikation like in primorial task.
<lang pascal>program PotOf6;
<lang pascal>program PotOf6;
Line 220: Line 220:
20 6^26 170581728179578208256
20 6^26 170581728179578208256
21 6^ 3 216</pre>
21 6^ 3 216</pre>

=={{header|Phix}}==
=={{header|Phix}}==
Another good opportunity to do some string math, this time with embedded commas. Scales effortlessly.<br>
Another good opportunity to do some string math, this time with embedded commas. Scales effortlessly.<br>