Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
(setq *RNext 2)
|
||||
|
||||
(de ffr (N)
|
||||
(cache '(NIL) N
|
||||
(if (= 1 N)
|
||||
1
|
||||
(+ (ffr (dec N)) (ffs (dec N))) ) ) )
|
||||
|
||||
(de ffs (N)
|
||||
(cache '(NIL) N
|
||||
(if (= 1 N)
|
||||
2
|
||||
(let S (inc (ffs (dec N)))
|
||||
(when (= S (ffr *RNext))
|
||||
(inc 'S)
|
||||
(inc '*RNext) )
|
||||
S ) ) ) )
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
: (mapcar ffr (range 1 10))
|
||||
-> (1 3 7 12 18 26 35 45 56 69)
|
||||
|
||||
: (=
|
||||
(range 1 1000)
|
||||
(sort (conc (mapcar ffr (range 1 40)) (mapcar ffs (range 1 960)))) )
|
||||
-> T
|
||||
Loading…
Add table
Add a link
Reference in a new issue