Hey guys! I was pretty bored today and I happened to have my calculator on me. And for some reason, this problem was on my mind.
So, I started to think about how it gets solved and such and wanted to generalize some formula that could find all the squares starting with . And I found something! Here is what I ended up with:
So, for a given , it would output a number you'd have to square to get a perfect square starting with .
For example:
(so on, n would increase by 1 each time...)
(so on...)
My question is this: See the in that formula that I stated at the start of this and never went on to define? That's the thing, I don't know how to define it, as in without guessing and checking, I don't know the smallest n for which the result is valid. I know from playing around that n depends in some way on the amount of digits of x and the parity of the x. If x is even, the smallest n for which the formula is correct will be even (vice versa for odd). Also, the larger x is, the larger n seems to have to be in order for it to hold.
I've tried many things but I can't seem to find out how to determine the smallest value n needed for the formula to carry out properly.
Could anyone provide some insight? It would be much appreciated. :)
This is just for fun!
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
Have you read the solution to the problem? it should be pretty clear that I'm not just randomly testing for the value of n.
Log in to reply
I understood slightly the differences between when (referring to the solution there) N is odd/even how it would affect the value of n, but I can't seem to understand what decides the lowest value of n.
Log in to reply
Moving this into the solution discussion of the problem directly.