Search This Blog

Sunday, 30 October 2022

The sum of two cubes in two different ways

This is a continuation of an entry last March on Ramanujan and the sums of two cubes. If the title makes no sense, start there.

This expands the list of solutions, and below it, I reveal my Diophantine approach to spreadsheets. I should note here that one of my most successful fraud investigations (the precise details of the client remain commercial-in-confidence) only worked because I used a spreadsheet to divine the cunning way a wages swindle was being run.

All I needed was a stapler and a pie chart, but to find out how I managed to get the data and wring out the answer, you need to ply me with beer.

If you make it a Guinness, I will also throw in a practical demonstration of isostasy: look behind the harp in this shot, and see if you can spot it.

Anyhow, here are my solutions:

-9728: 163 + -243; -12+ -203

-7657: -203 + 73; -173 + -143

-6832: -193 + 33; -183 + -103

-5859: -183 + -33; -193 + 103

-5824: -183 + 23; -163 + -123

-5256: -173 + -73; -203 + 143

-5103:-153 + -123; -183 + 93

-4104: -153 + -93; -163 + -23; -183 + 123 TRIPLE!

-3367: -163 + 93; -153 + 23

-3087: -143 + -73; -203 + 173

-2457: -183 + 153; -123 + -93

-1736: -123 + -23; -183 + 163

-1729: -93 + -103; -13 + -123

-1512: -103 + -83; -123 + 63

-1216: -123 + 83; -103 + -63

-1027: -193 + 183; -103 + -33

-999: -123 + 93; -103 + 13

-728: -123 + 103; -93 + 13; -83 + -63 TRIPLE!

-721: -163 + 153; -93 + 23

-513: -93 + 63; -83 + -13

-217: -63 + -13; -93 + 83

-189: -63 + 33; -53 + -4

-152: -53 + -33; -63 + 43

-91: -43 + -33; -63 + 53

91: 43 + 33; 63 + -53

152: 53 + 33; 63 + -43

189: 63 + -33; 53 + 4

217: 63 + 13; 93 + -83

513: 93 + -63; 83 + 13

721: 163 + -153; 93 + -23

728: 123 + -103; 93 + -13; 83 + 63 TRIPLE!

999: 123 + -93; 103 + -13

1027: 193 + -183; 103 + 33

1216: 123 + -83; 103 + 63

1512: 103 + 83; 123 + -63

1729: 93 + 103; 13 + 123

1736: 123 + 23; 183 + -163

2457: 183 + -153; 123 + 93

3087: 143 + 73; 203 + -173

3367: 163 + -93; 153 + -23

4104: 153 + 93; 163 + 23; 183 + -123 TRIPLE

5103:153 + 123; 183 + -93

5256: 173 + 73; 203 + -143

5824: 183 + -23; 163 + 123

5859: 183 + 33; 193 + -103

6832: 193 + -33; 183 + 103

7657: 203 + -73; 173 + 143

9728: -163 + 243; 12+ 203

Here is the base spreadsheet that spat out all the sums of two cubes where the source numbers were -20 to 20:


This is a bit kludgy, but once row 2 was done, I could use FILL-DOWN.

Next, I copied all of the sums of two cubes into a document, sorted them into order, and pasted them into column A of a fresh spreadsheet in column A. Column B had in B2  =IF(A1=A2, "hit","").  

Next, I deleted the non-hit rows, and knew what to look for: here's a sample of the target list:


Now I was ready to search the first spreadsheet, and this was where I copied Diophantus. I might have come up with a routine that did it for me, but it was faster and less brain-damaging just to hack away.

I have been known to sneer at geography a colouring-in, but as I am colour blind, I think I'm allowed to do that. Anyhow, I used colouring-in to pin down my pairs:


All that remained to do now was to check the cells and enter the source values, but as I was doing this manually, I set a check in column E, where E1 read =C1*C1*C1+D1*D1*D1, followed by COPY-DOWN.





My book of STEAM activities for bright young minds, Playwiths, has a number of labour-saving ideas involving spreadsheets, and about 1729 and Ramanujan, but now I need to add some extra stuff, based on what I have written here.

There was a time when hacking was an honourable activity, when the Kalashnikov rifle was described as a hack, and my fraud-busting spreadsheet was most emphatically a hack. We cannot turn the linguistic clock back to save hack, but we can at least try to make recreational computing respectable again!






 


Sunday, 23 October 2022

Spittlebugs

 When I was a teenager, the act of spitting was a golly or gollying, and just lately, North Head has been taking a bombardment of gollies, going on appearances. Bushes all over the headland are garlanded like this, with festoons of foam, as though some grubby louts have just passed through.

The 'gollies' are made by small bugs called spittlebugs, and when I say "bugs", I am using entomologist-speak, so my bugs are Hemiptera, insects with piercing mouthparts, like the cicadas, aphids and bird-of-paradise flies (which I will get around to describing one day).

These insects feed on plant sap, and make a sticky foam that seems to keep predators away. Working as a volunteer in a sanctuary, I was asked last Tuesday to prune back some trees that get a bit exuberant. We don't like doing this, but it reduces the fire hazard, so we do it with care. One Monotoca was home to many spittlebugs, and as one of the pockets in my work trousers always has a supply of jars, I snipped away a few of them, and by the time I got home, they had emerged from their foam to see what was going on. So out came the macro lens and the microscope.

First, here we have a juvenile and an adult (some people call them froghoppers): they were both in a Petri dish, which is the curve you can see.

But how big are they? One reason for using a Petri dish is that you cam slip a millimetre scale beneath it: if you let insects loose on a scale, they always seem to run away.

Now let's look at the juveniles:


There's more to say about these beasties, but as I'm flat out (as usual), here's a useful link. I will be playing with these for a few weeks, and this week, I was showing some to Stage 1 kids at Manly Vale, so here are some better shots:


If you want more stuff like this, you could do worse than look into my The Nature of North Head.  The price can be as low as $3 for non-dead-tree versions, $20 for monochrome, but the one in bookshops is colour and dead tree at $50.

Thursday, 13 October 2022

It's been a while

 I am travelling right now, but service will be resumed shortly.