[ prog / sol / mona ]

prog


LISP Puzzles

88 2020-05-16 12:33

>>87
Interestingly in the i = 10^8 case my sequence seems to be off, and even very small values such as 100 it is incorrect. I suppose I must have misinterpreted the sequence.

(map (lambda (e) (hofstadter (sub1 (expt 10 e)))) '(0 1 2 3 4 5 6 7 8))
=> (1 69 5808 528364 50927960 5029664750 500941310658 50029799244875 5000942659057950)
;; (1 69 5764 526334 50874761 5028514748 500918449417 50029364025646 5000934571821489)
157


VIP:

do not edit these