Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Rhonda-numbers/Mathematica/rhonda-numbers.math
Normal file
12
Task/Rhonda-numbers/Mathematica/rhonda-numbers.math
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
ClearAll[RhondaNumberQ]
|
||||
RhondaNumberQ[b_Integer][n_Integer] := Module[{l, r},
|
||||
l = Times @@ IntegerDigits[n, b];
|
||||
r = Total[Catenate[ConstantArray @@@ FactorInteger[n]]];
|
||||
l == b r
|
||||
]
|
||||
bases = Select[Range[2, 36], PrimeQ/*Not];
|
||||
Do[
|
||||
Print["base ", b, ":", Take[Select[Range[700000], RhondaNumberQ[b]], UpTo[15]]];
|
||||
,
|
||||
{b, bases}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue