Squares, a riddle

Algebra Level 2

There can be perfect squares having more than one digit whose all the digits are odd.

True or False

True for infinitely many numbers True for exactly one number False True for finitely many numbers

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Chris Lewis
Aug 13, 2020

In fact, at least one of the last two digits of a square number greater than 9 9 is always even.

First proof: list all possible pairs of final digits of odd squares (there are only 11 11 of them) and check: 01 , 09 , 25 , 49 , 81 , 21 , 69 , 89 , 61 , 41 , 29 01,09,25,49,81,21,69,89,61,41,29


Second proof: all even squares end in an even digit; we don't need to worry about those. So consider an odd square, s = ( 2 n + 1 ) 2 s=(2n+1)^2 .

We know that s 1 = 4 n 2 + 4 n s-1=4n^2+4n is a multiple of 4 4 . Also, the last digit of s s is one of 1 , 5 , 9 1,5,9 . So the last digit of s 1 s-1 is one of 0 , 4 , 8 0,4,8 . Hence (by divisibility rules for 4 4 ) the tens digit must be even.

Is there any perfect square integer a a Chris , for which there exists a positive integer n n such that all the digits of a ( a ( m o d 1 0 n ) ) a-(a \pmod {10^n}) are odd ( a > 1 0 2 n a>10^{2n} )?

Log in to reply

Won't the last n n digits of that number always be zero? (If I've misunderstood could you give an example of the operation you mean?)

Chris Lewis - 10 months ago

Log in to reply

Oh, sorry. Remove those zeros. It should be a ( a ( m o d 1 0 n ) ) 1 0 n \dfrac {a-(a \pmod {10^n})}{10^n} . I mean to say, beyond the tenth place towards left, all digits ( > 1 0 100 >10^{100} digits for example ) are odd.

Log in to reply

@A Former Brilliant Member That's a 1 0 n \left \lfloor \frac{a}{10^n} \right \rfloor , by the way.

Quick answer: yes! eg 12 4 2 = 15376 124^2=15376 .

It's actually possible to get arbitrarily long squares with only their last digit even; one family of these starts 3 4 2 = 1156 34^2=1156 , 33 4 2 = 111556 334^2=111556 , 333 4 2 = 11115556 3334^2=11115556 etc. It's quite a nice bonus question to prove that pattern always works (I think there might already have been a question about that on here.)

Chris Lewis - 10 months ago

Log in to reply

@Chris Lewis Thank you very much. Actually this was haunting me over a couple of days. You didn't give the link to the question you referred to.

Pop Wong
Aug 28, 2020

Since the number's square whose all digits are odd, the number is a odd number.

Let the number be 10 A + u 10A + u where A A is any positive integer, u u is odd number u { 1 , 3 , 5 , 7 , 9 } u \in \{1, 3, 5, 7, 9\}

  • 1 2 = 1 1^2 = 1
  • 3 2 = 9 3^2 = 9
  • 5 2 = 25 5^2 = 25
  • 7 2 = 49 7^2 = 49
  • 9 2 = 81 9^2 = 81

All carry forward digits c u 2 c_{u^2} are even.

( 10 A + u ) 2 = 100 A 2 + 20 A u + u 2 (10A+u)^2 = 100A^2 + 20Au + u^2

The tens digit = 20 A u + 10 c u 2 ( m o d 10 ) = 2 A u + c u 2 ( m o d 10 ) = = 20\cdot A \cdot u + 10 \cdot c_{u^2} \pmod{10} = 2 \cdot A \cdot u + c_{u^2} \pmod{10} = even

\therefore no such perfect numbers whose digits are odd.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...