Jump to content

How many demons?


Milkeno

Recommended Posts

There are a certain number of demons in a doom map. for any three demons, there are two who aren't of the same enemy type. for any four demons, there will always be two who are of the same enemy type. what is the maximum number of demons in the map?

Edited by Milkeno

Share this post


Link to post
2 hours ago, Redneckerz said:

Depends on the map.

Think about this carefully, for any four demons, there will always be two who are of the same enemy type and for any three demons, there are two who aren't of the same enemy type. You have to fulfill both of these you can't insert just any number into one of them.

Share this post


Link to post

After your typo fix and assuming we're allowing for Icon of Sins and Wolfenstein SS, I believe the answer is

6

Edited by SleepyVelvet

Share this post


Link to post

are there just two who are the same demon out of every set of four? or are there at least two who are the same demon. likewise, are there just two demons who aren't the same as each other in every set of three, or are at least two demons out of every set of three different from each other. These produce different results.

Share this post


Link to post
2 hours ago, Milkeno said:

Think about this carefully, for any four demons, there will always be two who are of the same enemy type and for any three demons, there are two who aren't of the same enemy type. You have to fulfill both of these you can't insert just any number into one of them.

I thought about it carefully. It depends on the map.

 

Spoiler

I also suck at math and i don't condone math related trivia on the morning.

 

Share this post


Link to post

Let’s analyze the problem step by step:

For any three demons, there are two who aren’t of the same enemy type. This means that there are at least two different enemy types among these three demons.

 

For any four demons, there will always be two who are of the same enemy type. This implies that there must be at least one pair of demons with the same enemy type.

 

To maximize the number of demons, we want to minimize the number of different enemy types. Let’s consider the following scenarios:

If we have only one enemy type, we can have at most three demons (since any four would violate the second condition).

If we have two enemy types, we can have at most two demons of each type (total of four demons).

If we have three enemy types, we can have at most one demon of each type (total of three demons).

 

Therefore, the maximum number of demons in the map is four. This can be achieved by having two demons of one type and two demons of another type. Any additional demon would violate the second condition.

 

Hence, the answer is four demons.

 

Edit: Only now I realize I probably did your math homework for you lmao

 

Edited by ObserverOfTime

Share this post


Link to post

Two barons of hell stand at a fork in the road, one of them always tells the truth, one of them always lies. One path leads to a regular exit, one path leads to a death exit. What question can you ask them that will allow you to carry your inventory to the next map?

Share this post


Link to post
16 hours ago, Shepardus said:

One, because you are the demons.

  Reveal hidden contents

6 (3 types, 2 of each type)

 

I actually got 5 but I think that's due to my faulty programing
 

 

17 hours ago, bejiitas_wrath said:

Maybe we need a program to calculate this formula for any map.

freehissy2.png

I wrote mine in zscript >.> it outputs to the ammo count

Share this post


Link to post

Lets look at the conditions:

  • 1st condition says that for any 3 demons, there must be 2 who are different from each other. Thus we can't have all 3 demons be of same type. This means that there can be a maximum of 2 of each demon type in the map.
  • 2nd condition states that for any 4 demons, there must be 2 demons who are of the same type. Thus there can only be a maximum of 3 types of demons in the map, since adding a 4th type would violate the rule.

 

Thus we get the equation:

Number of demons per type x Number of types = 2 x 3 = 6

 

The answer is 6.

Edited by ReaperAA

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...