Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Yellowstone-sequence/PicoLisp/yellowstone-sequence.l
Normal file
16
Task/Yellowstone-sequence/PicoLisp/yellowstone-sequence.l
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(load "@lib/frac.l")
|
||||
(de yellow (N)
|
||||
(let (L (list 3 2 1) I 4 C 3 D)
|
||||
(while (> N C)
|
||||
(when
|
||||
(and
|
||||
(not (idx 'D I))
|
||||
(=1 (gcd I (get L 1)))
|
||||
(> (gcd I (get L 2)) 1) )
|
||||
(push 'L I)
|
||||
(idx 'D I T)
|
||||
(setq I 4)
|
||||
(inc 'C) )
|
||||
(inc 'I) )
|
||||
(flip L) ) )
|
||||
(println (yellow 30))
|
||||
Loading…
Add table
Add a link
Reference in a new issue