About two months ago, I was randomly using my calculator to find a bunch of squares. Then, I noticed something a bit odd. One of the squares was 69696, and I was pretty sure that its square root wasn't a palindrome. When I square-rooted it, I got 264. By now I was really interested. I started experimenting to see if I could find other non-palindromes with palindromic squares, and I found 4!
26, whose square is 676. 264, whose square is 69696. 2285, whose square is 5221225. 2636, whose square is 6948496.
I checked all the way up to 7000^2, but didn't find any more. Maybe I could try writing some code to find them. If you find any, can you put them in the comments? Extra bonus if they're prime!
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Log in to reply
I believe the problem required the square roots to be non-palindromic. Filtering for this would result in the following:
As always, It was so satisfying seeing the output😄
Log in to reply
64030648 4099923883299904
110091011 12120030703002121
111091111 12341234943214321 (this one is very interesting because 1109111 also is in the sequence so maybe we can make one generator using this?)
306930693 94206450305460249
Log in to reply
Oh great idea! But how?
Log in to reply
Log in to reply
I'm starting a new thread bcz that one was getting thinner
@Jason Gomez Here's what we are reqd to do in the program:
Ok lemme strt frm the starting ,
Step 1: know that the number of digits in a number can be calculated by ⌊log10n⌋+1 here's the logic behind it and do lemme know if u don't understand it.
step 2: we have to create a palindromic square, so for that we will first take a no. (n) then reverse it(save it as r) and at last concatenate them to get the palindromes by setting a loop.
Step 3: filter out squares from the above palindrome set.
Step 4: filter out palindromic squares whose squareroots aren't palindromes.
Hope you got it
Regards, Agent T
Log in to reply
So you are trying to get palindromes first then take the square root and then check whether the resulting number is non palindromic, effectively going the opposite way which should speed up things, that’s a good method, this method only gets even number of digits palindromic square numbers, a little tweak and odd digits should be done too,
Log in to reply
Few things to note, numbers ending in zero can not be palindromic, after taking root to check whether an integer is formed you can use int(n)==n, works till about n=67000000, so all square palindromes under fourteen digits can be found using this, beyond this requires the remaking of the square root function
Log in to reply
836.0 698896
798644.0 637832238736
64030648.0 4099923883299904
These are the only even palindromic squares I got it (outputted one more after this 100000000.0 9999999999999999 clearly it’s broken)
Log in to reply
The next question would be to find a generator for this sequence (square root being non palindromic)
Log in to reply
You are asking for this right?(non palindromic numbers whose squares are palindromic)
Log in to reply
Code for printing the above seq is :
Useless Header
This is what I used
Log in to reply
but my output is more effective :P
I was not asking this actually, I was asking for a generator, which can find such numbers without brute force
Log in to reply
2p−1(2p−1) where p and 2p−1 are primes
An example is the generator for perfect numbers,Log in to reply
Log in to reply
this and this one's awesome too.
Dude I understood what y meant ...I was searching for something useful likeEdit:check out this prog For reversing the digits of a number
Log in to reply
should stand for
Can you give a hint on what the program should be doing, I really don’t want to find out what those nine variablesLog in to reply
frmla for rev the digits of a no.
Edit edit EDIT: I started a new thread and mentioned u twice, go check that out!Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
log10..okay I'll update it
I wanted to change the ln toLog in to reply
Log in to reply
New thread, I found out that square root function is still enough accurate though, if it makes a mistake then it’s easy to spot because it will be either one number below or above, and by comparing the root and square’s last digit, you can find whether it’s right or not
Log in to reply