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

Home > Numbers
Pandiv 143 (Posted on 2022-01-13) Difficulty: 3 of 5
What is the smallest pandigital number divisible by 143?

a. Consider 9-digit numbers (no zero!)
b. 10 digits - zero included.

Try to solve analytically.

No Solution Yet Submitted by Ady TZIDON    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Answers--but not analytical (spoiler) Comment 1 of 1
a.  123586749            b.  1024576839

from

clearvars, clc
 
n=143*ceil(100000000/143);
while n<=999999999
   ns=char(string(n));
   if ~contains(ns,'0')
       if length(unique(ns))==9
           disp(n)
           break       
       end
   end
   n=n+143 ;
end
 
 
n=143*ceil(1000000000/143);
while n<=9999999999
   ns=char(string(n));
%   if ~contains(ns,'0')
       if length(unique(ns))==10
           disp(n)
           break
       end
%   end
   n=n+143 ;
end
 
    

  Posted by Charlie on 2022-01-13 16:03:30
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