Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
// Calkin Wilf Sequence. Nigel Galloway: January 9th., 2021
|
||||
let cW=Seq.unfold(fun(n)->Some(n,seq{for n,g in n do yield (n,n+g); yield (n+g,g)}))(seq[(1,1)])|>Seq.concat
|
||||
|
|
@ -0,0 +1 @@
|
|||
cW |> Seq.take 20 |> Seq.iter(fun(n,g)->printf "%d/%d " n g);printfn ""
|
||||
|
|
@ -0,0 +1 @@
|
|||
printfn "%d" (1+Seq.findIndex(fun n->n=(83116,51639)) cW)
|
||||
Loading…
Add table
Add a link
Reference in a new issue