Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
5
Task/Amicable-pairs/Mathematica/amicable-pairs.math
Normal file
5
Task/Amicable-pairs/Mathematica/amicable-pairs.math
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
amicableQ[n_] :=
|
||||
Module[{sum = Total[Most@Divisors@n]},
|
||||
sum != n && n == Total[Most@Divisors@sum]]
|
||||
|
||||
Grid@Partition[Cases[Range[4, 20000], _?(amicableQ@# &)], 2]
|
||||
Loading…
Add table
Add a link
Reference in a new issue