All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
52-card lottery (Posted on 2023-03-29) Difficulty: 3 of 5

Let a 52 deck of numbered cards be created as follows:

2 special cards: 0 and 1
25 powers of 2: 2, 4, 8, ..., 2^25
25 powers of 3: 3, 9, 27, ..., 3^25

Shuffle the deck and draw at random 3 cards. Evaluate the product of the 3 numbers, say P.

What is the probability of P=0?
What is the probability of P being a non zero integer square?
What is the probability of P being a 4-digit number?

No Solution Yet Submitted by Ady TZIDON    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re(2): Computer solution | Comment 9 of 12 |
(In reply to re: Computer solution by Charlie)

Charlie's 6200 squares agrees with Brian Smith's analytical solution.

I suspect my isSquare() function is failing at in the large float numbers and giving spurious True values.

The largest possible value for P is:
22528399544939174411840147874772641

and its square root is
1.500946352969991 * 10^17

  Posted by Larry on 2023-03-29 10:51:10
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (9)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information