Combinations with repetitions/Square digit chain: Difference between revisions
Combinations with repetitions/Square digit chain (view source)
Revision as of 21:48, 4 June 2019
, 5 years ago→{{header|Julia}}
Line 230:
onecount, eightyninecount = 0, 0
for combo in with_replacement_combinations(items, numdigits)
if
prod(y -> factorial(sum(x -> x == y, combo)), unique(combo)))
end
end
|