Showing posts with label perfect square. Show all posts
Showing posts with label perfect square. Show all posts

Friday, 23 July 2021

Pandigital Numbers Formed From Squares

As the natural numbers become larger, it's more and more likely that they will contain all of the digits from 1 to 9 at least once. This is why the sequence of numbers containing all the digits from 1 to 9 is said to have an asymptotic density of 1. This is OEIS A294661:


 A294661



Numbers whose square contains all of the digits 1 through 9.   


The sequence begins:
11826, 12363, 12543, 14676, 15681, 15963, 18072, 19023, 19377, 19569, 19629, 20316, 22887, 23019, 23178, 23439, 24237, 24276, 24441, 24807, 25059, 25572, 25941, 26409, 26733, 27129, 27273, 29034, 29106, 30384, 32043, 32286, 33144, 34273, 35172, 35337, 35713, 35756, 35757, 35772, 35846, 35853, ...

I've marked the first thirty members of this sequence in blue because these numbers constitute OEIS A071519:


 A071519

Numbers whose square is a zeroless pandigital number (i.e., use the digits 1 through 9 once).


Beyond 30384 (the 30th and last member of OEIS A071519), some of the digits occur more than once or a zero appears. For example: $$32043^2=1026753849 \text{ and a zero appears}$$There are 362,880 ways of arranging of the digits from 1 to 9 (factorial 9 or 9!). However, only 30 of the resulting numbers are perfect squares and these are listed in OEIS A071519. None of them are prime.

Numbermatics representation of 26409

Today my diurnal age is 26409 and this number is a member of OEIS A071519, which is what drew my attention to the number's property:


If we allow zero and consider possible permutations of the digits from 0 to 9, there are 3,265,920 possibilities (9 x 9!) but only 87 are perfect squares and again, none are prime. All are divisible by 9. These 87 numbers form OEIS A156977:


 A156977

Numbers \(n\) such that \(n^2\) contains every decimal digit exactly once. 


The numbers are:
32043, 32286, 33144, 35172, 35337, 35757, 35853, 37176, 37905, 38772, 39147, 39336, 40545, 42744, 43902, 44016, 45567, 45624, 46587, 48852, 49314, 49353, 50706, 53976, 54918, 55446, 55524, 55581, 55626, 56532, 57321, 58413, 58455, 58554, 59403, 60984, 61575, 61866, 62679, 62961, 63051, 63129, 65634, 65637, 66105, 66276, 67677, 68763, 68781, 69513, 71433, 72621, 75759, 76047, 76182, 77346, 78072, 78453, 80361, 80445, 81222, 81945, 83919, 84648, 85353, 85743, 85803, 86073, 87639, 88623, 89079, 89145, 89355, 89523, 90144, 90153, 90198, 91248, 91605, 92214, 94695, 95154, 96702, 97779, 98055, 98802, 99066

On July 9th 2018, I wrote about Pandigital Numbers Formed From the Product of a Number and its Reversal.

Monday, 1 April 2019

42 is the new 33


A most interesting article appeared in Quanta magazine recently titled: Sum-of-Three-Cubes Problem Solved for ‘Stubborn’ Number 33. The article begins:
Mathematicians long wondered whether it’s possible to express the number 33 as the sum of three cubes — that is, whether the equation 33 = x³+ y³+ z³ has a solution. They knew that 29 could be written as 3³ + 1³ + 1³, for instance, whereas 32 is not expressible as the sum of three integers each raised to the third power. But the case of 33 went unsolved for 64 years. Now, Andrew Booker, a mathematician at the University of Bristol, has finally cracked it: 
He discovered that 
(8,866,128,975,287,528)³ + (–8,778,405,442,862,239)³ + (–2,736,111,468,807,040)³ = 33.
Apparently he used a very efficient search algorithm but he still required the use of a supercomputer running for three weeks to come up with the solution. Reading the article I also learned that there are no integer solutions to the equation x³+ y³+ z³ = n if \(n\equiv 4 \) mod 9 or \(n \equiv 5\) mod 9. Thus 31 and 32 cannot be expressed as the sums of three cubes. Of course, I've no idea why this is so and I may investigate the reason at some point in the future.

Interestingly, the only number below 100, for which a representation as a sum of three cubes has not been found, is 42. This is a number that featured in my blog post about magic cubes. Between 101 and 1000, there are 11 other "stubborn" numbers for which a representation has not been found. These numbers are 114, 165, 390, 579, 627, 633, 732, 795, 906, 921, 975. All of these numbers have the property in common that \(n\equiv 3 \) mod 9 or \(n \equiv 6\) mod 9.

The equation x³+ y³+ z³ = n is an example of a Diophantine equation (a polynomial equation whose unknown variables must take integer values). For mathematicians, "A major result would be to prove the conjecture that n = x³ + y³ + z³ has infinitely many solutions for every whole number \(n\), except those \(n\) that have a remainder of 4 or 5 after being divided by 9."

Figure 1: solutions for values of m
between 1 and 10

My source for the following information comes from here. For some such Diophantine equations, there are infinitely many solutions. For example, x³+ y³+ z³ = 1 has infinitely many solutions because of the identities:$$(1 + 9m^3)^3 + (9m^4)^3 + (-9m^4 - 3m)^3 = 1$$ $$(1 - 9m^3)^3 + (9m^4)^3 + (-9m^4 + 3m)^3 = 1$$By assigning various integer values to \(m\), the solutions unfold. Figure 1 shows an example using values of m between 1 and 10.

If we write the equation in the form:$$x^3 + y^3 + z^3 = t^3$$ and set \(t\) to be an integer then Ramanujan found that:$$x = 3n^2 + 5nm - 5m^2$$ $$y = 4n^2 - 4nm + 6m^2$$ $$z = 5n^2 - 5nm - 3m^2$$ $$t = 6n^2 - 4nm + 4m^2$$If we set \(m=1\) and \(n=2\), then \(t=20\) and \(t^3=8000\). Thus for the equation:$$x^3+y^3+z^3=8000$$there is the solution \(x=17\), \(y=14\) and \(z=7\) or $$17^3+14^3+7^3=8000$$While these results are interesting, they clearly only work for certain numbers and provide no help at all in solving a still outstanding problem like:$$x^3+y^3+z^3=42$$A specific curiosity that should be mentioned is:$$ 3^3 + 4^3 + 5^3 = 6^3$$Another is the smallest cube number that is the sum of three different positive cubes. This turns out to be 216 or 6^3 and itself the sum of \( -3^3+6^3+3^3 \). 729 or \( 9^3 \) is the next such number since \(8^3 + 6^3 + 1^1 = 729\). 729 is a perfect cube and a perfect square since \(27^2=729\).

Here is the excellent Numberphile video on YouTube in which Andrew Booker talks about his discovery:




UPDATE (7th September 2019): a solution for 42 has been found: