Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Digital-root/AutoHotkey/digital-root.ahk
Normal file
18
Task/Digital-root/AutoHotkey/digital-root.ahk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
p := {}
|
||||
for key, val in [30,1597,381947,92524902,448944221089]
|
||||
{
|
||||
n := val
|
||||
while n > 9
|
||||
{
|
||||
m := 0
|
||||
Loop, Parse, n
|
||||
m += A_LoopField
|
||||
n := m, i := A_Index
|
||||
}
|
||||
p[A_Index] := [val, n, i]
|
||||
}
|
||||
|
||||
for key, val in p
|
||||
Output .= val[1] ": Digital Root = " val[2] ", Additive Persistence = " val[3] "`n"
|
||||
|
||||
MsgBox, 524288, , % Output
|
||||
Loading…
Add table
Add a link
Reference in a new issue