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

Home > Numbers
Three digits (Posted on 2023-01-10) Difficulty: 3 of 5
XYZ is a 3-digit number. If you multiply it by 2 ten times, then you will get a number that only uses the digits X, Y, and Z. Find all possible values of XYZ.

No Solution Yet Submitted by Math Man    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 1 of 4
clc,clearvars
for n=100:999
   digs=unique(char(string(n)));
   n2=n*1024;
   digs2=unique(char(string(n2)));
   if all(ismember(digs2,digs))
     if ~isequal(digs2,digs)
       fprintf('* ');
     end
     fprintf('%d ',n,n2);
     fprintf(' ');
   end
end  

finds the following five 3-digit numbers, shown with their product when multiplied by 1024:

431 441344 
* 436 446464 
523 535552 
650 665600 
862 882688 

In one of these cases, 436, marked with an asterisk, not all three digits are used in the multiple, but indeed the product does use only digits in the original.

Edited on January 31, 2023, 2:41 pm
  Posted by Charlie on 2023-01-10 09:05:17

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 (0)
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