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

Home > Just Math
Permutations and Remainders (Posted on 2024-05-17) Difficulty: 3 of 5
Determine all the numbers formed by three different and non-zero digits, such that the six numbers obtained by permuting these digits leaves the same remainder after the division by 4.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 2 of 4 |
nset=combinator(9,3,'c');
for i=1:length(nset)
  nsubset=nset(i,:);
  idx=combinator(3,3,'p');
  nsubset=num2str(nsubset(idx));
  for j=1:size(nsubset,1)
    v(j,:)=erase(nsubset(j,:),' ');
    v2(j)=str2double(v(j,:));
    r(j)=mod(str2double(v(j,:)),4);
  end
  if length(unique(r))==1
    disp(v2) 
    disp(mod(v2,4))
  end
end

finds

>> permutationsAndRemainders
   951   915   591   519   159   195
     3     3     3     3     3     3
>> 

  Posted by Charlie on 2024-05-17 13:10:26
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