Combinations with repetitions/Square digit chain: Difference between revisions
Combinations with repetitions/Square digit chain (view source)
Revision as of 21:16, 4 June 2019
, 5 years ago→{{header|Julia}}
Line 224:
end
return m
ret /= factorial(sum(x -> x == elem, a))▼
end
Line 242 ⟶ 233:
continue
end
pcount =
if iterate(sum(combo)) == 89
eightyninecount += pcount
Line 276 ⟶ 268:
12024696404768024 numbers produce 1 and 87975303595231975 numbers produce 89.
</pre>
=={{header|Kotlin}}==
|