?

Log in

No account? Create an account
2015 puzzle - The Mad Schemes of Dr. Tectonic [entries|archive|friends|userinfo]
Beemer

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

2015 puzzle [Jan. 3rd, 2015|04:03 am]
Beemer
I need to write up our Christmas trip, but real quick I will mention that, after a day of doing very little other than (1) starting to pay bills and realizing they haven't all arrived in the mail yet, (2) using up Christmas gift cards on Amazon, and (3) Tactics Ogre on the PSP, I spent a good chunk of the evening solving this year's "year digits" puzzle in Technology Review.

The puzzle is: "How many integers from 1 to 100 can you form using just the digits in the year (once each) and the operators +, -, *, /, and ^?" (Parentheses are allowed, also.)

And the answer is, "you can write a program in R to enumerate and tally up all the allowable expressions in 36 lines of code". Not even terribly arcane code, either, though I did make use of a recursive loopy thing to avoid repeating a bunch of loops of different sizes.

(You can make 53 of the 100 integers.)

Oh dear god, is that the time?
LinkReply