Re: Pattern Possibilities



On Aug 15, 3:44 pm, inke...@xxxxxxxxx wrote:
Hmm, why did this reply appear before my previous one,
with the correct answer? In case it doesn't (because Google
ate it), the correct answer to the question posed is

65**95

I don't understand this notation. Or did you mean 65^95?

Thanks for the answer.

It's exponetiation in the Python programming language.
So it means the same thing. The "^" operator means
XOR in Python.

Some examples:

15^6
9
# because in base 2, 1111
# XOR 0110
# --------
# 1001

# OTOH,
15**6
11390625

If you wanted, say, only grids with exactly 8 squares checked,
you would first find how many combinations of 64 items (the grid)
can be taken 8 at a time (the checkmarks).

c = comb(64,8)
print c
4426165368

Then, the number of 95 character "words" you can make is

print c**95
23584430744237162792211601101607092714656508459160120553
72317022146914150121405011226268545657142878211715262536
51577082961198805411784025983526423738234568110850582660
69725666923606152682727029282328180185482588992110530003
25339913969808211318081172451594189144665859745277097202
19893176495663034464061167092970393657497332732028655889
85496078398070255486562263093645817198960620920851417549
45519985112237133947190414493883263081384290590352712782
70899815761833450284213145078358428591354820672828211447
74482572922725943682235087445654836043678037879138069586
48907042683440259633477250005701674632895302574953421253
26633668559615991610631233439905470561241371662920067355
56837342354274065552117941699183740952530831501900652060
44998690818505182088159870230780509429977386295806184755
53953860208460597839228014661761663696300664012669624268
09248898258770573294096971702859197515588719687518397149
679759178267132690432

That's 917 decimal digits or 3045 bits.

For a point of reference, see

How big is a 2000-bit number?
<http://members.aol.com/mensanator666/fun/2000_bit.htm>

.


Quantcast