That is a very simple mathematics question. R/ p6 T* f" O% {/ a
Let x = Male, y = Female, z = Child - {3 q% p5 d" J" {' A0 R6x + 3y + z/2 = 100 Formula 1 , `7 S P: ~# v* [tvb now,tvbnow,bttvbx + y + z = 100 Formula 2os.tvboxnow.com1 }( t8 _. Q( N0 N
Simplify Formula 2 into z, we get z = 100 - x - y Formula 3tvb now,tvbnow,bttvb4 u2 G- d$ I# `2 m* C
Sub Formula 3 into Formula 1, we get 6x + 3y + ( 100 - x - y )/2 = 100 Formula 4 $ Q" Y' {- q# u2 a; l+ qFormula 4 can change into 11x + 5y = 100 Formula 5/ s) h4 M4 s( u+ I0 V7 G% A
In Formula 5, x can only be 0 - 9, otherwise y will be negative number which we dont want.公仔箱論壇# d. a! @) o& [$ p. x
And between 0 and 9, only 0 can give me a single number of y. So, x has to be 0 and y have to be 20. Then put x and y back to formula 1, we get z = 80.os.tvboxnow.com0 z* j4 S$ i7 B! X" Q. o
Eventually, the answer is 20 female and 80 children and no male.作者: alan1234 時間: 2007-10-14 12:19 AM 標題: two answers
man,female,children+ M9 H( Y k- `% f' `
0,20,80 or 5,9,86作者: RyanC 時間: 2007-10-14 10:46 PM
原帖由 twinsdragon 於 2007-10-13 05:40 PM 發表 os.tvboxnow.com; p9 O, i8 y$ _4 U* l; V
11x + 5y = 100 Formula 5
tvb now,tvbnow,bttvb1 G: L( P8 h% R' V
11X must be 0 or multiple of 5公仔箱論壇% f% f/ k+ w5 _& L' v4 ]
that meanz x must be 0 or 5作者: manstein 時間: 2007-10-15 08:28 PM
86 children公仔箱論壇# X9 @1 L+ m* h
5 male ' p; x& U F1 ^, A9 female作者: dafunhei123 時間: 2007-10-15 10:39 PM