473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How many random people do you have to select before you find three people who share t

1
How many random people do you have to select before you find three people who share the same birthday?

That is, all three people were born on the same day in the same month, but not necessarily in the same year.the month and day should appear but i don't know how to do it.. can you help me?
Mar 26 '13 #1
1 1695
Rabbit
12,516 Expert Mod 8TB
Your thread has been moved to the algorithms forum as it doesn't seem to have anything to do with Java.

The answer depends on resolving the ambiguities in the question.

For example, are you looking for the minimum number you need to select? Then the answer is 3. You could conceivably select 3 of the same birthdays in a row.

If you are looking for the max, then you need to select 733. 366 days in a leap year. You will need to select every day for two years. The third year you can select any day.
Mar 26 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Denis St-Michel | last post by:
Hello all. Here are my Tables Tickets ------- id Notes -----
3
by: Bryan Parkoff | last post by:
I have C++ Primer Third Edition -- Author Stanley B. Lippman and Josee Lajoie. I have been studying it for couple months however it does not provide a valuable information which it is about...
0
by: Serious_Practitioner | last post by:
Thanks to fredg, Fletcher Arnold and Roger, who took the time to help me out with a VBA problem last weekend. I've just gotten back to that project and have discovered another problem, which I've...
3
by: polilop | last post by:
I have 30 numbers. I need to select randomly 10 out of the given 30. A number must not repeat ( eg. i can't have number 10 twice ). How can i do this??
7
by: ja | last post by:
Hello, I have a table that contains approx 2 million records. I want to query 2,000 random records. Example: 500,000 names divided by 20,000 samples = 25. The N is 25, meaning samples would...
10
by: Nananana | last post by:
Hi I have some DB2 tables where the primary key is usually unique, but can be duplicate. I want to find the duplicates only. For example, suppose the primary key has these values: 21 28 30...
2
by: RobertKKoller | last post by:
I have an Access frontend that connects to an Oracle9i database backend that is set up with a DSN using the Oracle 8 ODBC Driver. In general, everything works perfectly, but randomly (I say random...
1
by: doc1355 | last post by:
I have a feeling that this is an easy question. However I'm a newbee and don't have any idea how to do this. I have three tables that stores my users information. Each user has a unique ID that is...
6
by: Immortal Nephi | last post by:
First class is the base class. It has two data: m_Base1 and m_Base2. Second class and third class are derived classes and they are derived from first class. m_Base1 and m_Base2 are inherited into...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.