Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Fusc-sequence/Mathematica/fusc-sequence.math
Normal file
16
Task/Fusc-sequence/Mathematica/fusc-sequence.math
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
ClearAll[Fusc]
|
||||
Fusc[0] := 0
|
||||
Fusc[1] := 1
|
||||
Fusc[n_] := Fusc[n] = If[EvenQ[n], Fusc[n/2], Fusc[(n - 1)/2] + Fusc[(n + 1)/2]]
|
||||
Fusc /@ Range[0, 60]
|
||||
res = {{0, 1}};
|
||||
i = 0;
|
||||
PrintTemporary[Dynamic[{res, i}]];
|
||||
While[Length[res] < 6,
|
||||
f = Fusc[i];
|
||||
If[IntegerLength[res[[-1, -1]]] < IntegerLength[f],
|
||||
AppendTo[res, {i, f}]
|
||||
];
|
||||
i++;
|
||||
];
|
||||
res
|
||||
Loading…
Add table
Add a link
Reference in a new issue