| {perfect} hypercubes of odd order | ||
|---|---|---|
|
basic ingredients of perfect hypercubes denoted by: LP(....{a0,...,an-1}=[perm(0,..,m-1)],....) |
||
|
Component parameters {a0,...,an-1} |
parameters to create a component by formula | |
| LP({a1,...,an}) [ji] = (j=0∑n-1aj ji) % m | ||
|
Note: to explain the above for the square this means: LP({a1,a2}) [x,y] = (a0 x + a1 y) % m |
||
|
digit permutation =[perm(0,..,m-1)] |
permutation to change digits | |
| LP[ji] <-- perm[LP[ji]] | ||
| Note: simple replacement of value given by the permutation | ||
| further ingredients | ||
|
r-agonal pathfinder <v0,...,vn-1> |
n-Vector denoting the direction of the r-agonal | |
| vi = -1,0,1 | ||
|
Note: r-agonal directions are given by n-vectors with only values -1,0,1 formula's use general 'v' since they are also valid for other vectors |
||
|
inproduct <v1,v2> |
mathematical notion | |
| <v1,v2> = j=0∑n-1 (v1j v2j) | ||
|
Note: v1 and v2 are two n-Vectors, the in(ner)product denotes a number in our case an integer whis should be taken %m. |
||
| component conciderations given a pathfinder | ||
| LP({a0,...,an-1}) <v0,...,vn-1> = (LP[k==0] + k<<a0,...,an-1>,<v0,...,vn-1>>) % m ; k = 0.. m-1 | ||
|
the numbers on an r-agonal turn out to be a constant plus a sequence of numbers given by the inproduct of the parameters and the r-agonals pathfinder |
||
|
<<a0,...,an-1>,<v0,...,vn-1>> relatively prime to m |
all digits present on these r-agonals | |
| these r-agonals naturally sum to Sm = m (m-1) / 2 | ||
|
<<a0,...,an-1>,<v0,...,vn-1>> NOT relatively prime to m |
the r-agonals show q times the same s digits (q s = m) | |
|
q = lcm(m,<<a0,...,an-1>,<v0,...,vn-1>>) /
<<a0,...,an-1>,<v0,...,vn-1>> s = m / q |
||
|
these r-agonals sum to: m LP[k==0] + q k=0∑s-1 {(k<<a0,...,an-1>,<v0,...,vn-1>>) % m} = m LP[k==0] + q min{(k<<a0,...,an-1>,<v0,...,vn-1>>) % m; k=1..s-1} Ss = m LP[k==0] + q gcd(m,q) Ss = so the lines that do sum have: LP[k==0] = (Sm - q gcd(m,q) Ss) / m |
||
|
one can probably always panrelocate to posititions where the above values LP[k==0] fall on the main r-agonals making the hypercube {magic} for these r-agonals |
||
|
in order to make all r-agonals sum one needs to digit-change such that: k=0∑m perm[LP({a0,...,an-1}) <v0,...,vn-1>] = k=0∑m perm[(LP[k==0] + k<<a0,...,an-1>,<v0,...,vn-1>>) % m)] = Sm the diagonals of s by q {magic} rectangles provide such permutations |
||
| counting {pandiagonal} hypercubes of odd order | ||||||||
|---|---|---|---|---|---|---|---|---|
|
Basic Components LP({1,a1,...,an-1}) factor: Bn,m = ((m-3)/2n-1) quality: {pandiagonal} |
concidering the digit change option one can set a0 = 1, to put the component in normalized position one set ak > ak-1, to avoid reflected variants we limit an-1 <= (m-1) / 2 |
|||||||
|
giving the above conditions it can be deduced that there exist Bn,m = ((m-3)/2n-1) such basic components |
||||||||
|
Note: The quality of these "Basic Hypercubes" is {pandiagonal}, filtering out the {perfect} is subject to investigation |
||||||||
|
Bn,m = ((m-3)/2n-1) |
||||||||
| m\n | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
| 3 5 7 9 11 13 15 |
1 1 1 1 1 1 1 |
1 2 3 4 5 6 |
1 3 6 10 15 |
1 4 10 20 |
1 5 15 |
1 6 |
1 |
|
| combining components | ||||||||
|
In order to get a magic hypercube n components needs to be combined in thus a manner as to avoid double appearing numbers. Component with different parameters can be combined as well as different aspects of the same components. Below I keep the hypercube in normalized position and obtain the aomount of {pandiagonal} hypercubes. Numbers Dn,m yet to be determined |
||||||||
|
Basic Hypercubes LP(...,{1,a1,...,an-1},..) factor: Bn,m [ 2n-1 Bn,m - 1 ] ! / [ 2n-1 Bn,m - n ] !) quality: {pandiagonal} |
Combining Basic Components give the basic hypercubes | |||||||
|
Choosing the highest component out of the Bn,m possibil1ties selects one of the possible 2n-1 Bn,m that exist for the lower components, the factor 2 n-1 is caused by reflecting the parameters ai --> m-ai i=1..n-1 ; thus gives a factor Bn,m (2n-1Bn,m-1 n-1) the lower components can of course permute there position giving an extra (n-1)! resulting in: Bn,m [ 2n-1 Bn,m - 1 ] ! / [ 2n-1 Bn,m - n ] !) |
||||||||
|
Note: The quality of these "Basic Hypercubes" is {pandiagonal} this reproduces the numbers in the {perfect} square article as well as predict the 6 order 7 {pandiagonal} cubes order 7 uploaded onto the database |
||||||||
| Bn,m [ 2n-1 Bn,m - 1 ] ! / [ 2n-1 Bn,m - n ] !) | ||||||||
| m\n | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
| 3 5 7 9 11 13 15 |
1 1 1 1 1 1 1 |
1 6 15 28 45 66 |
6 330 3,036 14,820 51.330 |
210 107,880 4,744,740 78,883,080 |
32,760 180,300,120 47,722,860,360 |
20,389,320 1,446,769,946,160 |
48,920,775,120 |
|
|
Basic Hypercubes LP(...,{1,a1,...,an-1},..) compond orders factor: unknown |
Combining Basic Components compund order | |||||||
|
For compound order the situaton is a bitmore difficult. The general combinations calculted above give multipe appearing numbers when the differance or factors is an integral multiple of the factors of the order, suppose m = qr then (a + kq) r = (ar + kqr) = ar + km = ar (mod m) which confirms the fact stated. Yet I don't know a solid counting argument which give me the numbers mentioned below. I'm looking for a solid counting argument though. NOTE These numbers not yet incorporated into the following tables, nor have I not figure out wheter the multiple numbers can be controlled by some mixture of digit changing permutation |
||||||||
| experimental estimate | ||||||||
| m\n | 2 | factors | ||||||
| 9 15 21 25 27 33 35 39 45 49 |
12 39 93 193 192 273 351 388 471 906 |
3*3 3*5 3*7 5*5 3*3*3 3*11 5*7 3*13 3*3*5 7*7 |
||||||
|
{pandiagonal} hypercubes in normalized position amount: Fn,m * (m-1)!n-1 (m-2n-1)! * (m-12n) (2n-1)! * Bn,m [ 2n-1 Bn,m - 1 ] ! / [ 2n-1 Bn,m - n ] !) |
lower component digit permutations completes the proces | |||||||
|
To keep the highet component in normalized position the used digit changing permutation are limited to those where one randomlyselect 2n numbers to be placed on the i'th monagonal through [j0] at the first (Pi) and last (Ri) thus that: P0 < Pi < Ri < Pi+1 < Ri+1 < R0 ; i = 1..n-2 except for the lowest these can permute, thus explains (m-12n) (2n-1)! the orher (m-1-2n) numbers can be randomly permuted: (m-1-2n)! the lower components all permutations [0,perm(1,m-1)] can be used: (m-1)n-1 |
||||||||
|
(m-1)!n-1 (m-2n-1)! (m-12n) (2n-1)!
Bn,m [ 2n-1 Bn,m - 1 ] ! / [ 2n-1 Bn,m - n ] !) note; numbers are huge so numbers not displayed |
||||||||
| m\n | 2 | 3 | ||||||
| 3 5 7 9 11 13 15 |
144 777,600 6,096,384,000 92,177,326,080,000 2,581,228,494,028,800,000 125,400,898,533,107,957,760,000 |
373,248,000 3,605,157,642,240,000 24,179,071,274,975,232,000,000 271,461,250,591,582,448,517,120,000,000 5,668,198,751,497,959,264,452,912,087,040,000,000 |
||||||
|
(BE AWARE: this reasoning is generalized from known data for prime order squares (so highly speculative)) the reader is invited to check the reasoning carefully and point out a better one. The not explained factor Fn,m is added to denote the fraction of working permutation yet to be determined (see 1st table above) several factors are entering here at various places I do think this amounts to a global (integral) fraction of the amount given above. |
||||||||
|
note: the numbers above give the amount of {pandiagonal} hypercubes in normalized position I haven't factored in the "not working" permutations which might effect the numbers in the case of compound order, so the above numbers can be taken as an "upper-bound". Currently don't see a flaw in the reaoning but is subject to scruteny upon the factor 2n-1 / (2n-1)!! numbers will be corrected to this factor next week. |
||||||||