Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 Re: Help Me ! » Permutations? » 2016-07-07 09:51:32

ptm

To understand that why would I need to know the permutations I included fragments of the program I'm coding in C++:

#2 Re: Help Me ! » Permutations? » 2016-07-06 22:35:40

ptm

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!

#4 Re: Help Me ! » Permutations? » 2016-07-04 22:16:47

ptm

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!

#5 Re: Help Me ! » Permutations? » 2016-07-03 20:58:33

ptm

Wow! Excellent tool!
Thank you, Bobbym!

#6 Re: Help Me ! » Permutations? » 2016-07-03 18:23:24

ptm

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)

#7 Re: Help Me ! » Permutations? » 2016-07-01 01:21:32

ptm

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!

#8 Re: Help Me ! » Permutations? » 2016-07-01 00:20:37

ptm

Thank you!
I'll try it with my compiler and let you know the result.

#9 Help Me ! » Permutations? » 2016-06-30 22:30:05

ptm
Replies: 14

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.

Board footer

Powered by FluxBB