Discovering an interesting phenomenon in Rubik's Cube

Source: Internet
Author: User

Yesterday, a Matlab 6.5 was installed on the machine, and an interesting phenomenon was accidentally discovered:
The value of the rank n cube array is equal to zero. Condition is (N Mode 2 = 0 and N> 2 );

I did the following verification:

> A = magic (4)

A =

16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1

> Det ()

Ans =

0

========================================================== ======================================

> A = magic (6)

A =

35 1 6 26 19 24
3 32 7 21 23 25
31 9 2 22 27 20
8 28 33 17 10 15
30 5 34 12 14 16
4 36 29 13 18 11

> Det ()

Ans =

0

========================================================== ======================================

> A = magic (8)

A =

64 2 3 61 60 6 7 57
9 55 54 12 13 51 50 16
17 47 46 20 21 43 42 24
40 26 27 37 36 30 31 33
32 34 35 29 28 38 39 25
41 23 22 44 45 19 18 48
49 15 14 52 53 11 10 56
8 58 59 5 4 62 63 1

> Det ()

Ans =

0

When N is set to 100 or 1000, it has the same conclusion.

I don't know if this is a pattern that everyone has discovered. Or who has provided proof.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.