¡¡ Archimedes cattle problem

¡¡¡¡¡¡ Date:¡¡ Mon, 07 Sep 1998 09:54:47 KST
¡¡ ¡¡¡¡ Ç® ÀÌ : ÀÓ ¼º ¿ì¡¡ Maple Code : Á¤ õ ¼®, ±è ½Â ¿ì (ÄÄÇ»ÅÍ °øÇаú)
¡¡¡¡¡¡ ±³ Á¤ : CSHIN

Qz]
Let W, B, D, Y be the numbers of the bulls in the white, black, dappled, and yellow herds,¡¡
respectively. Likewise, let w, b, d, y be the numbers of the caws in the same order.¡¡
Show that the smallest integer solution gives B = 7,460,514.¡¡
Find the remaining of the unknowns and the total number of oxen in this case.

    W = (1/2+1/3) B + Y, B = (1/4+1/5) D + Y , D = (1/6+1/7) W + Y¡¡¡¡ <=¡¡ Bulls¡¡
    w = (1/3+1/4) ( B + b ),¡¡ b = (1/4+1/5) ( D + d ),¡¡
    d = (1/5+1/6) ( Y + y ),¡¡¡¡ y = (1/6+1/7) ( W + w )¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡ <= Cows
Sol]
Commets : MatlabÀ» »ç¿ëÇÏ°Ô µÇ¸é ¼Ò¼ö¸¦ ÀÌ¿ëÇϱ⠶§¹®¿¡ Á¤È®ÇÑ¡¡ °ªÀ» ±¸Çϱ⠾î·Æ´Ù. ¹®Á¦ÀÇ ½ÄÀ» Çà·Ä·Î ³ªÅ¸³»¸é¡¡¡¡ A x = 0,

¡¡¡¡ x = [W B Y D w b y d]';
A =[ ¡¡
¡¡¡¡¡¡¡¡ 6¡¡¡¡ -5¡¡ -6¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0
¡¡¡¡¡¡¡¡ 0¡¡¡¡ 20¡¡ -20¡¡ -9¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0
¡¡¡¡¡¡ -13¡¡¡¡ 0¡¡¡¡ -42¡¡ 42¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0
¡¡¡¡¡¡¡¡ 0¡¡¡¡ -7¡¡¡¡ 0¡¡ 0¡¡¡¡ 12¡¡ -7¡¡¡¡ 0¡¡¡¡ 0
¡¡¡¡¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡ -9¡¡¡¡ 0¡¡¡¡ 20¡¡¡¡ 0¡¡¡¡ -9
¡¡¡¡¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -11¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -11¡¡¡¡ 30
¡¡¡¡¡¡ -13¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -13¡¡¡¡ 0¡¡¡¡ 42¡¡¡¡ 0 ];
¡¡
Mp> A:=matrix([ [6,-5,-6,0,0,0,0,0],[0,20,-20,-9,0,0,0,0],¡¡
¡¡¡¡¡¡¡¡¡¡ [-13,0,-42,42,0,0,0,0],[0,-7,0,0,12,-7,0,0],
¡¡¡¡¡¡¡¡¡¡ [0,0,0,-9,0,20,0,-9], [0,0,-11,0,0,0,-11,30],
¡¡¡¡¡¡¡¡¡¡ [-13,0,0,0,-13,0,42,0] ]);

¡¡
¡¡ Reduced row echelon forrmÀº ¾Æ·¡ÀÇ Çà·ÄÀÌ´Ù.
Mp> rref(A);

¡¡¡¡ 1¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -246821 / 83710
¡¡¡¡ 0¡¡¡¡ 1¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -1243419 / 585970
¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 1¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -125739 / 106540
¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 1¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -367903 / 175791
¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 1¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ -17158 / 8371
¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 1¡¡¡¡ 0¡¡¡¡ -815541 / 585970
¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 0¡¡¡¡ 1¡¡¡¡ -1813071 / 1171940

±×·¯¹Ç·Î,

¡¡W = 246821/83710 d
¡¡B = 1243419/585970 d
¡¡Y = 125739/106540 d
¡¡D = 367903/175791 d
¡¡w = 17158/8371 d
¡¡b = 815541/585970 d
¡¡y = 1813071/1171940 d

¡¡ ¸ðµç º¯¼öµéÀÌ ÀÚ¿¬¼öÀÌ¿©¾ß ÇϹǷΠdÀÇ °ªÀº ºÐ¸ðµéÀÇ ÃÖ¼Ò °ø¹è¼ö°¡ µÇ¾î¾ß ÇÑ´Ù.
Mp> lcm (1171940,585970,175791,106540,83710,8371);
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ ===>¡¡¡¡ lcm = 3515820

¡¡¶Ç´Â
¡¡83710¡¡ = 2*5*11*761
¡¡585970 = 2*5*7*11*761
¡¡106540 = 2*2*5*7*761
¡¡175791 = 3*7*11*761
¡¡8371¡¡ = 11*761
¡¡585970 = 2*5*7*11*761
¡¡1171940 = 2*2*5*7*11*761

¡¡ À§¿Í °°ÀÌ ÀμöºÐÇØ µÇ¹Ç·Î ÃÖ¼Ò°ø¹è¼ö´Â 2*2*3*5*7*11*761 = 3515820 ÀÌ µÈ´Ù.
¡¡d = 3515820 * k ¶ó°í µÎ°í¡¡ °¢°¢¿¡ ´ëÀÔÇÏ°Ô µÇ¸é

¡¡W = 10366482 * k
¡¡B = 7460514¡¡ * k
¡¡Y = 4149387¡¡ * k
¡¡D = 7358060¡¡ * k
¡¡w = 7206360¡¡ * k
¡¡b = 4893246¡¡ * k
¡¡y = 5439213¡¡ * k
¡¡ d = 3515820¡¡ * k

¡¡ÃÖ¼ÒÀÇ ÀÚ¿¬¼ö¡¡ k = 1 À» ´ëÀÔÇÏ¸é ¿øÇÏ´Â Çظ¦ ±¸ÇÏ°Ô µÈ´Ù.
ÃÖ¼Ò°ªÀÇ ÇÕÀº 50,389,082