All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
All odd digit (Posted on 2020-10-05) Difficulty: 2 of 5
Find all positive integers n such that the decimal representation of n2 consists of odd digits only.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
a slightly shorter method. | Comment 4 of 7 |
Since the representation is decimal, let n^2=(100x+10a+b)^2, with 0<{a,b}<10, and some x.

By inspection, all that affects the final 2 digits of n^2 is the expression 20ab+b^2.

20ab is always even. 

As we are only interested in odd digits, b^2 is in {1,9,25,49,81}. If b is {1,3}, there is nothing to carry, and if not, we are adding even to even. Hence the penultimate digit is always even, if the final digit is odd. The sole exception is if a=x=0, so that there is no penultimate digit.

So {1,3} are the only solutions to the given problem.


Edited on October 6, 2020, 5:16 am
  Posted by broll on 2020-10-06 04:57:32

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (12)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information