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:30, 10 August 2022
, 1 year ago→{{header|J}}: slightly more concise
(J) |
m (→{{header|J}}: slightly more concise) |
||
Line 253:
=={{header|J}}==
Generating the numbers as the cartesian product of the eligible digits (and sorting the result, for "prettiness"):
<lang J> /:~10 #. >,{~.(
11 101 110 111 111 111 112 113 114 115 116 117 118 119 121 131 141 151 161 171 181 191 211 311 411 511 611 711 811 911</lang>
|