Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
state = {1, 2, 3};
|
||||
MakeNext[state_List] := Module[{i = First[state], done = False, out},
|
||||
While[! done,
|
||||
If[FreeQ[state, i],
|
||||
If[GCD[Last[state], i] == 1,
|
||||
If[GCD[state[[-2]], i] > 1,
|
||||
out = Append[state, i];
|
||||
done = True;
|
||||
]
|
||||
]
|
||||
];
|
||||
i++;
|
||||
];
|
||||
out
|
||||
]
|
||||
Nest[MakeNext, state, 30 - 3]
|
||||
ListPlot[%]
|
||||
Loading…
Add table
Add a link
Reference in a new issue