Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Digital-root/BQN/digital-root-1.bqn
Normal file
8
Task/Digital-root/BQN/digital-root-1.bqn
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
DSum ← +´10{⌽𝕗|⌊∘÷⟜𝕗⍟(↕1+·⌊𝕗⋆⁼1⌈⊢)}
|
||||
Root ← 0⊸{(×○⌊÷⟜10)◶⟨𝕨‿𝕩,(1+𝕨)⊸𝕊 Dsum⟩𝕩}
|
||||
|
||||
P ← •Show ⊢∾Root
|
||||
P 627615
|
||||
P 39390
|
||||
P 588225
|
||||
P 393900588225
|
||||
4
Task/Digital-root/BQN/digital-root-2.bqn
Normal file
4
Task/Digital-root/BQN/digital-root-2.bqn
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
⟨ 627615 2 9 ⟩
|
||||
⟨ 39390 2 6 ⟩
|
||||
⟨ 588225 2 3 ⟩
|
||||
⟨ 393900588225 2 9 ⟩
|
||||
Loading…
Add table
Add a link
Reference in a new issue