Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

77%
+5 −0
Challenges Output 256 in many different ways

BQN, 14 solutions (SBCS) Run online! This link shows the result of each expression and a table of character intersections. Each expression intersects with itself only, giving a diagonal matrix. Th...

posted 3y ago by Marshall Lochbaum‭  ·  edited 3y ago by Marshall Lochbaum‭

Answer
#2: Post edited by user avatar Marshall Lochbaum‭ · 2021-04-29T00:50:43Z (over 3 years ago)
The online REPL's not so slow any more
  • # [BQN](https://mlochbaum.github.io/BQN/), 14 solutions ([SBCS](https://github.com/mlochbaum/BQN/blob/master/commentary/sbcs.bqn))
  • [Run online!](https://mlochbaum.github.io/BQN/try.html#code=c29sdXRpb25zIOKGkCDin6gKICAiMsOXMsOXMsOXMsOXMsOXMsOXMsOXMiIKICAiM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8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oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgCIKICAi4oqR4o2SwrvCu8K7wrsvwrvCu8K7L8K7wrvCuy/Cu8K7wrvCu+KGlTkiCiAgIicuJytg4omi4oqU4oqUwqviiaLiipTiipTiiaLiipTiipTCq8Kr4omi4oqU4oqU4omi4oqU4omi4omi4omiJ+KKlCciCuKfqQrigKJTaG93IOKAokJRTsKoIHNvbHV0aW9ucwoo4oiowrTiiIop4oycy5wgc29sdXRpb25z) (~20s on my browser/CPU). This link shows the result of each expression and a table of character intersections. Each expression intersects with itself only, giving a diagonal matrix. The expressions based entirely on repetition have been reduced to 16 reps to improve readability and response time (most are not that bad, but the one starting with `≡` takes at least 2<sup>256</sup> operations in an implementation that doesn't cache depth traversal and will definitely DoS you).
  • ```
  • 2×2×2×2×2×2×2×2
  • 3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬3
  • 4⋆4
  • 8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8
  • ```
  • Four with ordinary arithmetic; nothing exciting about these.
  • ```
  • ¯16∨16
  • ```
  • BQN [extends logic operations](https://mlochbaum.github.io/BQN/doc/logic.html) bilinearly. With these, `256` is `¬¯255` is `¬¯15∧17` (`∧` is `×`) is `(¬¯15)∨(¬17)`.
  • ```
  • ⌊5÷÷5÷÷5÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷5555÷55555÷55÷5÷55÷55555÷5555÷5÷55÷55555÷5555
  • ⌈7√7∧7∧7∧7∧7∧7∧777777∧777777
  • ```
  • Arithmetic approximations.
  • ```
  • =≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍@
  • ≠↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓∞↓∞
  • ≡↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑0↑0
  • ⊢´⍋"⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋"
  • <⁼⊏⌽⊒π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π
  • ```
  • Various flavors of repetition. The first three create arrays with Rank (`=`), Length (`≠`), and [Depth](https://mlochbaum.github.io/BQN/doc/depth.html) (`≡`) 256: see [Solo](https://mlochbaum.github.io/BQN/doc/couple.html) (`≍`) and [Prefixes and Suffixes](https://mlochbaum.github.io/BQN/doc/prefixes.html) (`↑` and `↓`). After that is one based on Grade (`⍋`) and one with [Occurrence Count](https://mlochbaum.github.io/BQN/doc/selfcmp.html#occurrence-count) (`⊒`): both of these produce a list that counts up given a list with all elements equal.
  • ```
  • ⊑⍒»»»»/»»»/»»»/»»»»↕9
  • '.'+`≢⊔⊔«≢⊔⊔≢⊔⊔««≢⊔⊔≢⊔≢≢≢'⊔'
  • ```
  • I don't really know what to say.
  • # [BQN](https://mlochbaum.github.io/BQN/), 14 solutions ([SBCS](https://github.com/mlochbaum/BQN/blob/master/commentary/sbcs.bqn))
  • [Run online!](https://mlochbaum.github.io/BQN/try.html#code=c29sdXRpb25zIOKGkCDin6gKICAiMsOXMsOXMsOXMsOXMsOXMsOXMsOXMiIKICAiM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8KswqwzwqzCrDPCrMKsM8Kswqw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4oaRMCIKICAi4oqiwrTijYsiIuKNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNiyIiIgogICI84oG84oqP4oy94oqSz4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgCIKICAi4oqR4o2SwrvCu8K7wrsvwrvCu8K7L8K7wrvCuy/Cu8K7wrvCu+KGlTkiCiAgIicuJytg4omi4oqU4oqUwqviiaLiipTiipTiiaLiipTiipTCq8Kr4omi4oqU4oqU4omi4oqU4omi4omi4omiJ+KKlCciCuKfqQrigKJTaG93IOKAokJRTsKoIHNvbHV0aW9ucwoo4oiowrTiiIop4oycy5wgc29sdXRpb25z) This link shows the result of each expression and a table of character intersections. Each expression intersects with itself only, giving a diagonal matrix. The expressions based entirely on repetition have been reduced to 16 reps to improve readability and response time (most are not that bad, but the one starting with `≡` takes at least 2<sup>256</sup> operations in an implementation that doesn't cache depth traversal and will definitely DoS you).
  • ```
  • 2×2×2×2×2×2×2×2
  • 3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬3
  • 4⋆4
  • 8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8
  • ```
  • Four with ordinary arithmetic; nothing exciting about these.
  • ```
  • ¯16∨16
  • ```
  • BQN [extends logic operations](https://mlochbaum.github.io/BQN/doc/logic.html) bilinearly. With these, `256` is `¬¯255` is `¬¯15∧17` (`∧` is `×`) is `(¬¯15)∨(¬17)`.
  • ```
  • ⌊5÷÷5÷÷5÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷5555÷55555÷55÷5÷55÷55555÷5555÷5÷55÷55555÷5555
  • ⌈7√7∧7∧7∧7∧7∧7∧777777∧777777
  • ```
  • Arithmetic approximations.
  • ```
  • =≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍@
  • ≠↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓∞↓∞
  • ≡↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑0↑0
  • ⊢´⍋"⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋"
  • <⁼⊏⌽⊒π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π
  • ```
  • Various flavors of repetition. The first three create arrays with Rank (`=`), Length (`≠`), and [Depth](https://mlochbaum.github.io/BQN/doc/depth.html) (`≡`) 256: see [Solo](https://mlochbaum.github.io/BQN/doc/couple.html) (`≍`) and [Prefixes and Suffixes](https://mlochbaum.github.io/BQN/doc/prefixes.html) (`↑` and `↓`). After that is one based on Grade (`⍋`) and one with [Occurrence Count](https://mlochbaum.github.io/BQN/doc/selfcmp.html#occurrence-count) (`⊒`): both of these produce a list that counts up given a list with all elements equal.
  • ```
  • ⊑⍒»»»»/»»»/»»»/»»»»↕9
  • '.'+`≢⊔⊔«≢⊔⊔≢⊔⊔««≢⊔⊔≢⊔≢≢≢'⊔'
  • ```
  • I don't really know what to say.
#1: Initial revision by user avatar Marshall Lochbaum‭ · 2021-04-20T18:18:40Z (over 3 years ago)
# [BQN](https://mlochbaum.github.io/BQN/), 14 solutions ([SBCS](https://github.com/mlochbaum/BQN/blob/master/commentary/sbcs.bqn))

[Run online!](https://mlochbaum.github.io/BQN/try.html#code=c29sdXRpb25zIOKGkCDin6gKICAiMsOXMsOXMs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N4omN4omN4omN4omN4omN4omN4omN4omNQCIKICAi4omg4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oaT4oie4oaT4oieIgogICLiiaHihpHihpHihpHihpHihpHihpHihpHihpHihpHihpHihpHihpHihpHihpHihpEw4oaRMCIKICAi4oqiwrTijYsiIuKNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNi+KNiyIiIgogICI84oG84oqP4oy94oqSz4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgOKAv8+A4oC/z4DigL/PgCIKICAi4oqR4o2SwrvCu8K7wrsvwrvCu8K7L8K7wrvCuy/Cu8K7wrvCu+KGlTkiCiAgIicuJytg4omi4oqU4oqUwqviiaLiipTiipTiiaLiipTiipTCq8Kr4omi4oqU4oqU4omi4oqU4omi4omi4omiJ+KKlCciCuKfqQrigKJTaG93IOKAokJRTsKoIHNvbHV0aW9ucwoo4oiowrTiiIop4oycy5wgc29sdXRpb25z) (~20s on my browser/CPU). This link shows the result of each expression and a table of character intersections. Each expression intersects with itself only, giving a diagonal matrix. The expressions based entirely on repetition have been reduced to 16 reps to improve readability and response time (most are not that bad, but the one starting with `≡` takes at least 2<sup>256</sup> operations in an implementation that doesn't cache depth traversal and will definitely DoS you).

```
2×2×2×2×2×2×2×2
3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬¬3¬3
4⋆4
8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8
```
Four with ordinary arithmetic; nothing exciting about these.

```
¯16∨16
```
BQN [extends logic operations](https://mlochbaum.github.io/BQN/doc/logic.html) bilinearly. With these, `256` is `¬¯255` is `¬¯15∧17` (`∧` is `×`) is `(¬¯15)∨(¬17)`.

```
⌊5÷÷5÷÷5÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷55÷555÷55÷5÷5555÷55555÷55÷5÷55÷55555÷5555÷5÷55÷55555÷5555
⌈7√7∧7∧7∧7∧7∧7∧777777∧777777
```
Arithmetic approximations.

```
=≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍≍@
≠↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓∞↓∞
≡↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑0↑0
⊢´⍋"⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋⍋"
<⁼⊏⌽⊒π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π‿π
```
Various flavors of repetition. The first three create arrays with Rank (`=`), Length (`≠`), and [Depth](https://mlochbaum.github.io/BQN/doc/depth.html) (`≡`) 256: see [Solo](https://mlochbaum.github.io/BQN/doc/couple.html) (`≍`) and [Prefixes and Suffixes](https://mlochbaum.github.io/BQN/doc/prefixes.html) (`↑` and `↓`). After that is one based on Grade (`⍋`) and one with [Occurrence Count](https://mlochbaum.github.io/BQN/doc/selfcmp.html#occurrence-count) (`⊒`): both of these produce a list that counts up given a list with all elements equal.

```
⊑⍒»»»»/»»»/»»»/»»»»↕9
'.'+`≢⊔⊔«≢⊔⊔≢⊔⊔««≢⊔⊔≢⊔≢≢≢'⊔'
```
I don't really know what to say.