Jump to content
BrainDen.com - Brain Teasers
  • 0

average birthdays


BMAD
 Share

Question

3 answers to this question

Recommended Posts

  • 0

1) sum of ages=boys+girls+teacher=b*g+g*b+42=2*b*g+42


2) sum of ages=average_age*number_of_persons=(b+g)*(b+g+1)

1=2: 2*b*g+42=(b+g)*(b+g+1)

I fed it into Wolfram Alpha and got no positive integer (number of persons) solution.

A small program to be sure:

for b in range(1,99):
for g in range(1,99):
sum1=2*b*g+42
sum2=(b+g)*(b+g+1)
if(sum1==sum2):
print(b,g,sum1)

(b,g)=(3,5) => b+g=8

I would be interested if someone finds the solution with Wolfram Alpha.

Sorry, unable to hide.
Edited by bonanova
spoiler
Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...