Boys and girls!
December’s here again already. Over the next few weeks there’ll be the usual Christmassy-New-Year good vibes, then there’ll be the presents, fireworks, champagne, mistletoe, more champagne, and then the clock will strike midnight and we’ll have a +1 to the eternal yearly calendar. Then, for perhaps the first few weeks of January we’ll all still be saying and writing the date as day/Jan/the year 2017; oops, 2018! We all do it! I think ).
Twenty-eighteen. It has a ring to it; yes – a nice, round number. And each numeral that makes up the date is an even number… What? You’re not sure about 1? Come on! 1 is 2 to the power of zero. Kinda :). But wait! There’s more even-ness in this number: each digit of 2018 is a power of two. But what don’t you like about zero? Well, think of an artificial number, raising it to the power of which two gives zero – what, difficult? Now think of an imaginary ‘i’, the square of which gives -1. Come on: such a sexy number as 2018 is just crying out for working a sweat up about :).
Ok, ok; agreed. We won’t spoil arithmetic with all kinds of unnecessary chimeras, to the power of which each decent two turns into an empty zero. But then, as per Chinese tradition, eight means wealth! So get ready – 2018 should be blessed with prosperity; there’s no chance of avoiding it!
Sooo. It’s time to stretch and warm up for what is bound to be an infinitely interesting – and perfectly prosperous – year. So let’s get stuck into some 2018-related arithmetic. And what comes to mind first? Yes: evenness.
2018 = 2*1009
1009 is a prime number. A bit like 2017. Last year I promised that 2017 would be a simple, straightforward year. And look how in the end it turned out! Now we need to get ready for an extra-simple/straightforward year, aka – a minus plus a minus gives a plus.
What else? The sum of all the numerals in 2018 is 11: a most photogenic number from any angle, and one that’s dear to me for technical reasons: the product of all nonzero numerals = 16, which can’t not raise the spirits of any programmer on the planet.
Ok, enough. Warm-up over. Let’s move onto our already traditional New Year arithmetic exercise. Here we go…
Given figures: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1. Using only ‘+’, ‘-‘, ‘*’ and ‘/’, plus ‘(…)’, all in any quantity, and also using exclusively these figures only once and only in that order… – how do you get 2018?
For example:
((10 + 9 – 8) * 7) + (6 + 5) * (4 – 3 + 2) + 1 = 111
Here we get 111. But we need to get 2018!
Marks, get set, go! Who’ll do it first to become the champ?
10 9 8 7 6 5 4 3 2 1 = 2018
Once you solve it, you go to level two: Get 2018 from the same figures minus the 10.
9 8 7 6 5 4 3 2 1 = 2018
Got it? > Level 3…:
8 7 6 5 4 3 2 1 = 2018
I managed these without a calculator – and without peeking at last year’s brainteaser – in around 20 minutes in Shanghai waiting for my flight to Moscow. My attempt at the next one was interrupted of course by the inevitable ‘turn off your devices’ nonsense on the plane, but once the ‘seatbelts fastened’ light went off, I carried on where I’d left off:
7 6 5 4 3 2 1 = 2018
This one is impossible without a factorial. I think we could allow here powers and roots too.
6 5 4 3 2 1 = 2018
Here I needed a multifactorial.
All righty. From ten figures to six: done. We’re half way there. Next up will be the second part of the brainteaser: from five and down. But we’ll save that for next time. For now, I’ve a party to get to!…
Cheers!