Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Super-d-numbers/Mathematica/super-d-numbers.math
Normal file
14
Task/Super-d-numbers/Mathematica/super-d-numbers.math
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
ClearAll[SuperD]
|
||||
SuperD[d_, m_] := Module[{n, res, num},
|
||||
res = {};
|
||||
n = 1;
|
||||
While[Length[res] < m,
|
||||
num = IntegerDigits[d n^d];
|
||||
If[MatchQ[num, {___, Repeated[d, {d}], ___}],
|
||||
AppendTo[res, n]
|
||||
];
|
||||
n++;
|
||||
];
|
||||
res
|
||||
]
|
||||
Scan[Print[SuperD[#, 10]] &, Range[2, 6]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue