Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
ClearAll[f]
|
||||
f[s_List] := Block[{a = s[[-1]], len = Length@s},
|
||||
Append[s, If[a > len && ! MemberQ[s, a - len], a - len, a + len]]]; g = Nest[f, {0}, 70]
|
||||
g = Nest[f, {0}, 70];
|
||||
Take[g, 15]
|
||||
p = Select[Tally[g], Last /* EqualTo[2]][[All, 1]]
|
||||
p = Flatten[Position[g, #]] & /@ p;
|
||||
TakeSmallestBy[p, Last, 1][[1]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue