Skip to content

Instantly share code, notes, and snippets.

@ksaj
Created November 6, 2019 04:02
Show Gist options
  • Save ksaj/04eb2ef93a939f00e5ff491fc94661ef to your computer and use it in GitHub Desktop.
Save ksaj/04eb2ef93a939f00e5ff491fc94661ef to your computer and use it in GitHub Desktop.
3 = the sum of 3 cubes ; a third solution, written in Common Lisp
;;;; Previously there were only 2 known solutions for
;;;; a list of 3 numbers that when cubed and then added
;;;; together, equal 3. Here is a new one.
(setq a 569936821221962380720)
(setq b -0569936821113563493509)
(setq c -472715493453327032)
(defun cubed (x)
"ay cubed plus bee cubed plus cee cubed equals 3 period"
(* x x x))
(+ (cubed a) (cubed b) (cubed c))
@ksaj
Copy link
Author

ksaj commented Nov 6, 2019

Incidentally, the previous 2 known solutions were:

(setq a 1)
(setq b 1)
(setq c 1)

and:

(setq a 4)
(setq b 4)
(setq c -5)

Significantly easier number to work with. Can't wait til we find solution 4!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment