Super-d numbers: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: aligned a statement.) |
m (used true superscripts, added whitespace.) |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
A super-d number is a positive, decimal (base ten) integer '''n''' such that '''d × |
A super-d number is a positive, decimal (base ten) integer '''n''' such that '''d × n<sup>d</sup>''' has at least '''d''' consecutive digits '''d''' where |
||
where |
|||
<big>2 ≤ d ≤ 9</big> |
<big>2 ≤ d ≤ 9</big> |
||
For instance, 753 is a super-3 number because 3 × 753 |
For instance, 753 is a super-3 number because 3 × 753<sup>3</sup> = 128087<u>333</u>1. |
||
Line 10: | Line 9: | ||
;Task |
;Task: |
||
:* Write a function/procedure/routine to find super-d numbers. |
:* Write a function/procedure/routine to find super-d numbers. |
||
:* For '''d=2''' through '''d=6''', use the routine to show the first '''10''' super-d numbers. |
:* For '''d=2''' through '''d=6''', use the routine to show the first '''10''' super-d numbers. |
||
;Extra credit |
;Extra credit: |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:* '''[http://mathworld.wolfram.com/Super-dNumber.html Wolfram MathWorld - Super-d Number]''' |
|||
:* |
:* [http://mathworld.wolfram.com/Super-dNumber.html Wolfram MathWorld - Super-d Number]. |
||
:* [http://oeis.org/A014569 OEIS: A014569 - Super-3 Numbers]. |
|||
<br><br> |
|||
=={{header|11l}}== |
=={{header|11l}}== |