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

Home > Just Math
Odd Determinants of a Square Array (Posted on 2024-05-29) Difficulty: 3 of 5
Find the number of ways in which the nine digits 1,2,3,...,9 can be arranged in a 3*3 square array such that the determinant of this square is an odd integer. Each digit to be used only once.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re: Computer Solution | Comment 4 of 7 |
(In reply to Computer Solution by Larry)

aSet=perms(1:9);
oddCt=0; mlist=[];
for i=1:length(aSet)
  a=reshape(aSet(i,:),[3 3]);
  if mod(det(a),2)==1
    oddCt=oddCt+1;
    mlist(end+1)=det(a);
  end
end
oddCt
mlist=sort(mlist);
[mlist(1) mlist(end)]
length(unique(mlist))

does get -407 and 407 as the smallest and largest odd determinant, but gets 381 as the count of unique determinants and 108585 as the count of all the determinants.

  Posted by Charlie on 2024-05-29 15:58:09
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 (6)
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