Positive decimal integers with the digit 1 occurring exactly twice: Difference between revisions
Positive decimal integers with the digit 1 occurring exactly twice (view source)
Revision as of 21:32, 10 August 2022
, 1 year ago→{{header|J}}: discard uniques to avoid three copies of 111
m (→{{header|J}}: slightly more concise) |
(→{{header|J}}: discard uniques to avoid three copies of 111) |
||
Line 253:
=={{header|J}}==
Generating the numbers as the cartesian product of the eligible digits (and sorting the result, for "prettiness"):
<lang J> ~./:~10 #. >,{~.(2 1
11 101 110
=={{header|jq}}==
|