FourFours.nb
Published
Summary
Code to solve 4 4's problem : write each of the numbers 1 to 100 using exactly four 4's for each number
![[Graphics:Images/FourFours_gr_1.gif]](/math/images/FourFours_gr_1.gif)
![[Graphics:Images/FourFours_gr_2.gif]](/math/images/FourFours_gr_2.gif)
now for each function,make a function that performs on the first element, and keeps a record in the 2nd
![[Graphics:Images/FourFours_gr_4.gif]](/math/images/FourFours_gr_4.gif)
![[Graphics:Images/FourFours_gr_5.gif]](/math/images/FourFours_gr_5.gif)
![[Graphics:Images/FourFours_gr_6.gif]](/math/images/FourFours_gr_6.gif)
![[Graphics:Images/FourFours_gr_8.gif]](/math/images/FourFours_gr_8.gif)
![[Graphics:Images/FourFours_gr_9.gif]](/math/images/FourFours_gr_9.gif)
![[Graphics:Images/FourFours_gr_10.gif]](/math/images/FourFours_gr_10.gif)
![[Graphics:Images/FourFours_gr_11.gif]](/math/images/FourFours_gr_11.gif)
![[Graphics:Images/FourFours_gr_12.gif]](/math/images/FourFours_gr_12.gif)
![[Graphics:Images/FourFours_gr_13.gif]](/math/images/FourFours_gr_13.gif)
![[Graphics:Images/FourFours_gr_14.gif]](/math/images/FourFours_gr_14.gif)
![[Graphics:Images/FourFours_gr_16.gif]](/math/images/FourFours_gr_16.gif)
![[Graphics:Images/FourFours_gr_17.gif]](/math/images/FourFours_gr_17.gif)
![[Graphics:Images/FourFours_gr_19.gif]](/math/images/FourFours_gr_19.gif)
![[Graphics:Images/FourFours_gr_20.gif]](/math/images/FourFours_gr_20.gif)
![[Graphics:Images/FourFours_gr_21.gif]](/math/images/FourFours_gr_21.gif)
![[Graphics:Images/FourFours_gr_22.gif]](/math/images/FourFours_gr_22.gif)
![[Graphics:Images/FourFours_gr_23.gif]](/math/images/FourFours_gr_23.gif)
![[Graphics:Images/FourFours_gr_24.gif]](/math/images/FourFours_gr_24.gif)
![[Graphics:Images/FourFours_gr_25.gif]](/math/images/FourFours_gr_25.gif)
![[Graphics:Images/FourFours_gr_26.gif]](/math/images/FourFours_gr_26.gif)
![[Graphics:Images/FourFours_gr_28.gif]](/math/images/FourFours_gr_28.gif)
![[Graphics:Images/FourFours_gr_29.gif]](/math/images/FourFours_gr_29.gif)
![[Graphics:Images/FourFours_gr_30.gif]](/math/images/FourFours_gr_30.gif)
![[Graphics:Images/FourFours_gr_31.gif]](/math/images/FourFours_gr_31.gif)
Now we start making lists of numbers, starting with numbers reachable from one 4: 4, .4 = 4/10, and .4 repeating = 4/9, and we apply all unary ops to them
![[Graphics:Images/FourFours_gr_32.gif]](/math/images/FourFours_gr_32.gif)
![[Graphics:Images/FourFours_gr_33.gif]](/math/images/FourFours_gr_33.gif)
![[Graphics:Images/FourFours_gr_34.gif]](/math/images/FourFours_gr_34.gif)
![[Graphics:Images/FourFours_gr_36.gif]](/math/images/FourFours_gr_36.gif)
![[Graphics:Images/FourFours_gr_37.gif]](/math/images/FourFours_gr_37.gif)
![[Graphics:Images/FourFours_gr_39.gif]](/math/images/FourFours_gr_39.gif)
![[Graphics:Images/FourFours_gr_40.gif]](/math/images/FourFours_gr_40.gif)
![[Graphics:Images/FourFours_gr_42.gif]](/math/images/FourFours_gr_42.gif)
![[Graphics:Images/FourFours_gr_44.gif]](/math/images/FourFours_gr_44.gif)
![[Graphics:Images/FourFours_gr_45.gif]](/math/images/FourFours_gr_45.gif)
![[Graphics:Images/FourFours_gr_47.gif]](/math/images/FourFours_gr_47.gif)
![[Graphics:Images/FourFours_gr_48.gif]](/math/images/FourFours_gr_48.gif)
![[Graphics:Images/FourFours_gr_49.gif]](/math/images/FourFours_gr_49.gif)
![[Graphics:Images/FourFours_gr_51.gif]](/math/images/FourFours_gr_51.gif)
![[Graphics:Images/FourFours_gr_53.gif]](/math/images/FourFours_gr_53.gif)
![[Graphics:Images/FourFours_gr_54.gif]](/math/images/FourFours_gr_54.gif)
![[Graphics:Images/FourFours_gr_56.gif]](/math/images/FourFours_gr_56.gif)
![[Graphics:Images/FourFours_gr_57.gif]](/math/images/FourFours_gr_57.gif)
![[Graphics:Images/FourFours_gr_59.gif]](/math/images/FourFours_gr_59.gif)
![[Graphics:Images/FourFours_gr_60.gif]](/math/images/FourFours_gr_60.gif)
Solutions for the first 150 integers….
![[Graphics:Images/FourFours_gr_62.gif]](/math/images/FourFours_gr_62.gif)
Converted by Mathematica November 5, 2001
![[Graphics:Images/FourFours_gr_18.gif]](/math/images/FourFours_gr_18.gif)
![[Graphics:Images/FourFours_gr_27.gif]](/math/images/FourFours_gr_27.gif)
![[Graphics:Images/FourFours_gr_63.gif]](/math/images/FourFours_gr_63.gif)