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

Home > Numbers
The class of ‘55’ (Posted on 2021-02-27) Difficulty: 3 of 5
How many numbers comply with the two conditions:
1. It is a permutation of 5 consecutive digits.
2. It is divisible by 55.

See The Solution Submitted by Ady TZIDON    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 3 of 4 |
clc
tot=0;
for i=0:5
    n=num2str(i);
    for j=i+1:i+4
       n=[n num2str(j)]; 
    end
    p=perms(n);
    for j=1:size(p)
       n=str2num(p(j,:));
       if mod(n,55)==0
          tot=tot+1;
          disp(n)
       end
    end
    disp(" ")
end
disp(tot)

reports there are 20 such numbers and groups them by the set of digits used:

       43120
       42130
       34210
       31240
       24310
       21340
       13420
       12430
 
 
       36245
       34265
       26345
       24365
 
       74635
       73645
       64735
       63745
 
       68475
       67485
       48675
       47685
       
There are 8 in the group where the lowest digit is zero and four each where the lowest digit is 2, 3 and 4.       

  Posted by Charlie on 2021-02-27 15:55:35
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 (16)
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