You are not logged in.
Pages: 1
To understand that why would I need to know the permutations I included fragments of the program I'm coding in C++:
Please give me the formula that how to calculate when I have 2 or more than 2 times 65536 cells in the row.
I'll try to figure out from that that how many are the all possible permutations.
Thank you guys!
Thank you Thickhead!
Great team here!
I would like to ask your opinion.
In my earlier example I've used 4096 values.
4096 values 16 times = 65536
There are 6542 prime numbers between 0 and 65536.
No. 2 is not usable for my project so there are left 6541.
They don't fit exactly into my 65536 cells.
I can use them only 10 times, there are left 126 empty cells.
65536-(10*6541)=126
The 126 empty cells can be filled with the first 126 values from the 6541.
(10*6541)+126=65536
Is it possible to calculate all the permutations now?
Should I use the 6541 values...
…or should I stick to 4096*16?
Thank you!
Wow! Excellent tool!
Thank you, Bobbym!
Thank you, Bobbym!
Seems my 64 bit long double needs to be changed to a 80 bit long double...
(long and long double have the same size with my compiler: 64 bits)
16!=2.0922789888e13
2.0922789888e13^4096=2.085392997397824e54559
65536!=5.162948523097533e+287193
5.162948523097533 e+287193 / 2.085392997397824e54559
I don't really need precision so I round it down:
1.0e287193 / 1.0e54559=1.0e232634
That is larger than (4096!)^16 and smaller than 65536! just as expected.
Thank you very much for your effort, thickhead!
Thank you!
I'll try it with my compiler and let you know the result.
Hello to the members of the "Math is fun forum"!
Please help me to find the solution for my problem.
I have a spreadsheet with 4096 cells in one row , with 4096 unique values in it.
I would like to arrange them in a different order.
How many rows would I need to arrange them in all possible ways?
Such as:
1,2,4096,3,4....
10,12,14,1,4095...
...
It would need 4096! rows.
I would like to extend the columns to 65536.
Copy/Paste the available 4096 values into it 16 times.
After that how many rows would I need to mix-arrange them in all possible permutations?
Such as:
1,3,3,4096,4095,2,2,2,2,2,2,11,257,8,8,8,8,8,8,8,8,...
4095,4096,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,3...
...
Thank you.
Pages: 1