ไม่ต้องเสียเวลาแนะนำตัวผู้เขียนกันเลยล่ะกันครับ มาทำความรู้จัก”ทฤษฎีจำนวนกัน”เลยดีกว่า
ทฤษฎีจำนวน เป็นสาขาหนึ่งของคณิตศาสตร์บริสุทธิ์ ซึ่งศึกษาเกี่ยวกับคุณสมบัติของจำนวนเต็ม
ส่วนทฤษฎีจำนวนเบื้องต้นที่ผู้เขียนจะเขียนในบล็อกนี้นั้น จะเป็นความรู้พื้นฐานของทฤษฎีจำนวน ซึ่งมีเนื้อหาหลัก ๆ เช่น การหารลงตัว, ตัวหารร่วม, ตัวหารร่วมมาก, Euclidean Algorithm และอื่น ๆ ซึ่งจะเขียนครั้งเดียวก็คงจะไม่จบ ผู้เขียนจะขอค่อย ๆ แยกเขียนต่อไปเรื่อย ๆ
นิยามของการหารลงตัว : เราจะกล่าวว่าจำนวนเต็ม
หาร
ลงตัว (
) ถ้าเราสามารถหา
ที่ทำให้ 
(เช่น
เพราะ
)
Note:
คือเซตของจำนวนเต็ม ,ถ้า
หาร
ไม่ลงตัวใช้สัญลักษณ์ 
ถ้า
และ
แล้ว 
ถ้า
แล้ว 
ถ้า
และ
แล้ว 
ให้
เป็นจำนวนเต็ม เราจะสามารถหาจำนวนเต็ม
และ
ที่ทำให้
และ
ได้เพียงคู่เดียวเท่านั้น
(เช่น
)
เนื่องจากในภาษา C/C++
%
ซึ่งไม่ใช่เศษจากการหารที่แท้จริง เพราะเศษที่เราต้องการควรจะเป็น 
เวลาเขียนโปรแกรมในการหาเศษจากการหารจึงควรเขียนเป็น
int mod(int x,int y) { return (x%y+y)%y; } //ใช้ได้เฉพาะเมื่อ y>0 เท่านั้น
#define MOD(x,y) (x%y+y)%yMOD(x,rand()) จะได้ค่าเป็น (x%rand()+rand())%rand()
เรากล่าวว่า
เป็นตัวหารร่วมของ
และ
ถ้า
และ 
นิยามของตัวหารร่วมมาก : ให้
และ
เป็นจำนวนเต็มที่ตัวใดตัวหนึ่งไม่เป็น
เรากล่าวว่า
เป็นตัวหารร่วมมากของ
และ
ถ้า
มีค่ามากที่สุดเท่าที่จะเป็นไปได้ เราใช้สัญลักษณ์
หรือ
แทนตัวหารร่วมมากของ 
(เช่น
เป็นตัวหารร่วมมากของ
และ
)
Euclidean Algorithm เป็นขั้นตอนวิธีหาตัวหารร่วมมาก
ตัวหารร่วมมากนั้นมีสมบัติที่สำคัญที่ทำให้เกิด Euclidean Algorithm คือ
1.
2.
%
เราจึงสามารถเขียนโค้ดของ Euclidean Algorithm ได้เป็น
int Euclid(int a,int b) { if(b==0) return a; else return Euclid(b,mod(a,b)); }
Comments
bdzAmrjsheIcszL
amateur galore, 83512, big truck salvage, 80461, toon sex, 802, lsi logic support tampa, 955057, shaved teen pussy, xdd, bombardier q400, wuqp, free dog sex, 10325, kathy bates, 662531,
ytJoIfJCrfiG
tentacle sensei, 2758, aer lingus airlines, :DDD, world cup soccer standings, 8-D, intelius search, vigxvu, shemail movies, qsqj, nl classified, cjnfky, gypsy caravans, dfpyz, brunswick high school ohio, 9893, pet supplies, 38047,
qdHUQUuTBg
rss feeds, 8-DD, seaside florida, hxzuie, world cup soccer news, hgw, chestnut trees, nbi, target baby registry, 1328, christy canyon, 4488, little incest, kll,
jjyVlCpAyzPy
miley cyrus lap dance, %]]], men nylon full slips, =O, helicopter jobs, 381, free mobile hentai, jxp, teen strapon femdom, >:-), levi strauss, 944, american classics, nex, ellie idol, qjhrue, young gays, >:-((, tranny pics, mskesf, japanese school girl, >:-(((,
ZNvCImBAoaTuj
san francisco map, >:-(, nude neighbors, 8-)), myfreecam 18, jhet, paul harvey audio, 0732, krispy kreme doughnuts, 194, swiftlock laminate flooring, cmcbkq, spf clothing, >:],
GSaKxwygUuLjso
shoe show, zhkqo, the big bang theroy, %), kevin myers, 4398, just add ice orchids, xgtvbs, traffic master allure flooring, zdrk, modern baby nursery, xfohty, michigan health insurance, xhgr, nude dancers, 469,
YpRABmZKOglACqYxrG
stuart woods books, 156, free lesbian video clip, =-)), naked young, zsi, own cum, 527, blow up doll, 511686, rc model airplanes, :-P, vizio televisions, 920560, university of british columbia, hdiuuj, seattle newspapers, 703828,
NTDJCAInzAp
walmart online shopping, tauckw, peach fuzz, tciwc, garden fountain, :-((, pizza hut park, %-[, free jewelry, 013, edmund fitzgerald, >:]], the melting pot restaurant, sqbpw, lisa robertson, >:OOO, sand castle, >:(((,
AYgsMoGqUrhOZ
beautiful models, >:-))), printable 2011 calendar, ctk, mate 1, 1209, jermaine sams, 8), outdoor playsets, uco, healthy lose weight diet, >:(, pearson education, sxiuvu, older ladies fun, 34236, planet elder scrolls, %-OOO,
WvFOfXygpXaKZiLDqJ
alice krige, olhqd, energy audits, gbyv, miami transexuals, =), sunquest tanning bed, vyek, holmes on holmes, 827098, copy dvd to dvd, dxtql, sex torrents, tbplr, nude pre teens, :],
UyPffKPGSzoEdJVG
delgado community college, 412, brothers pizza, 37277, justin bieber one time, >:[[[, hyaluronic acid, 8DD, iss tracking, 55741, howard county maryland, xyb, go fish, 9803, new hampshire tourism, mbfviu, columbia zoo, mcm, weather conneaut lake pa, 0490, candace cage, >:-[,
gAGsykdHGU
grand canyon university, 50857, afternoon delight, 260, harmony remote, =(((, flatlander racing, lgcopj, nude hula hoop, 786209, leer truck cap prices, 439, paz vega, jlbt, glosario de cine, 810706, florida secretary of state, 508977, leon county property appraiser, ozi,
arkxfumnxZMozjoVUs
chase health advance, %-], samsung finesse, rcjpk, friendly chat, rel, frontpage seka, 735170, rv awning, 8-OOO, hair tips, lrtrj, underground cities, bphpwj, anal hook videos, :))),
tuZHXFiREuVJ
miami business directory, yjrdks, ashlynn brooke anal, 377, home nude, %-PPP, bastile day, =-O, easy spirit shoes, 964227, kma radio, :[[, watch nhl hockey live, >:-O, usa softball, =-[[, college football conferences, >:DD, horny coeds, wafoa, haircut styles, %((,
lQexAkcgDIabItjNEw
iceland volcanoe, 869044, illegal search engine, dwd, kristi myst, 485, kona cotton, zcrxg, nude child erotica, fjp, nokia n8, mhvp, pervert tube, 429, samus aran, =]],
kkjTRzfWkLNnbaKgY
mitsubishi outlander, =], ample buns, :PPP, la dolce vita, tidkfb, social security payments, 8574, i fucked my teacher, gyc, stephanie meyer website, :OOO, sleepover dares, =-OOO, free doily patterns, 278195, patriotic songs, 813906,
DSwwXwAJVIU
florida teacher certification, himjlc, fitness expert austin, maij, early signs of diabetes, osk, bad girls club, %(((, pumpkin bread recipe, 706, no nude models, ltt, prostitute porn, %-DD, nc state tax refund, 807,
IcjdLBXhakFlRZxguMF
free christian sheet music, skko, hvg sandra, ffmpwq, national tire warehouse, fyczkz, russianbare photo collection, 106, hentai plaza, 35018, day lilies, %DD, baby quilt patterns, %-((,
icYivEcZavvc
tactical solutions, >:-PP, red tube home, :-[[, teen skirt, 656743, cfnm galore, 0843, camper supplies, 777920, wild at heart, oyus, december 21 2012, :-O, hentai porno video, 488,
rXZEcMDSuWbt
free swingers stories, 98375, hetero hand, >:-OOO, unclaimed state money, >:-P, herpes symptoms, 284, southwire company, %PPP, can he score, tasv, gay war games, psfsoj, 14k diamond heart pendant, fhei, rock polisher, yydy, swimming pool solar cover, agw, singlesnet login, 2688,
FvnEGUQmXccjR
female masturbating, zuauya, symptoms of an ulcer, fbl, pentecostal beliefs, crmqu, free nude videos, 6982, preteen angel model, 9805, emerson electric, 8DDD, internet search business, ewq, john deere 650, ohx, dog names, >:(,
buy viagra
Hello! buy viagra , viagra , viagra , viagra , cialis ,
ugKzOISuBOPmG
john wayne biography, 3769, merry angels, xuupev, ip hider, jvvv, swimming pool prices, yhxvam, health reform facts, rlieq, cosco canada, 8-DDD, operation repo, 78866, hobby horse clothing, :OOO,
lbmxYOswYLuy
oxford county kennel club, eikvg, hay elevator, 0662, larissa riquelme photos, qsijee, josh thompson, 560, adventure island florida, azalxv, sex animal, 640574, pot belly pigs, 08234, coin values old coins, 498, dbz hentia, 38332,
VgYtYHPEGRSzK
workforce solutions, >:O, tenga fliphole, tbfrx, oil well, 514554, smart phones comparison, =-]]], windows vista download, 8-], homemade weed killer, swwb, dna test, 185, forced deepthroat, bpeqq, richard petty, kgx, naked mothers, 310987,
AFjNLoGJuWUOBOzgb
ls magazine torrents, cdc, kahr arms, 53205, cisco 3845, 549, live sex, wxyaps, sex toy, 45282, npi lookup, >:-))), forex trading, mbroe, rapid library, %-(,
viagra
Hello! viagra , buy viagra , viagra , viagra , cialis ,
GKoomWBfaTppJCiQaP
screen beans, dcf, facilitated communication, 8-OO, world cup score sheet, 73891, water in basement, dxa, top ten pornstars, 247417, cory feldman, kxy, watch hentai online, =[[, light year, cmouy, kanekalon hair, %-DD, online phone directory, 79966, brevard county, :-((,
PrqkaFpaCOqasIJ
margarita machines, >:-D, entertainer in tn, 654662, blackberry desktop software, :-], one tree hill episodes, 108, denton county records, 272, rare topsites lolita, 8887, jamie pressley, 8-PP, stuffed pork chops recipe, nprjgv, viviana gibelli, tid, tgi fridays recipes, 783, dish network reviews, 49315,
akBXNzeBKeMKSEL
divorce papers, 942959, massive milkers, 8-OOO, family reunion fun ideas, %(, chuck tv, %], cavenders western wear, ufk, virgin media, gmiaec, barely 19, knduyp, paramount pictures, %-((, diego games, :[[, viking gods, sfyvo, monterey ca, %OOO,
pFdRWzKIhoBsH
geauga lake, 5639, first time having sex, 0107, national express coaches, rwjceh, heinz hard, 711185, penis extensions, 607415, close up spread, wfth, roland garros logo gif, >:-D, penis jewelery, =OOO, creation festival, bhfrtn, austin theriault, 532356, pick n pull, buiao,
dACYxksPZTGPlW
dilf video galleries, =[[, nieman marcus, 8-[[[, texas roadhouse restaurant, 73842, industrial revolution, 74864, credit reports and scores, %(((, delray beach, 8O, indoor wall fountains, qzht, area code 616, oidox, dell dimension e310, eqmpc,
viagra
Hello! viagra , buy viagra , cialis online , viagra , viagra ,
viagra
Hello! viagra , viagra , buy viagra , cheap viagra , viagra ,
viagra
Hello! viagra , cheap viagra , viagra , viagra , viagra ,
cialis online
Hello! cialis online , viagra , cialis , viagra , viagra ,
YhQdyXprMDXUOv
bride of chucky, 300, muami lawyer, bcskew, george hickler new jersey, qeynq, porn h, =-DDD, lawn grass, 289, jersey city, :OOO, sony vaio drivers, sdzuv, wfaa news, 868, drake find your love, adrsv,
wYCmBofggwZOumoe
vitamin deficiency, 128, rock candy, 66337, gay massage video, 8), destin florida hotels, wyyim, matt czuchry, %O, arabic names, khqzlb, cheap stuff, =(, planet suzy forum, 8-OOO, allrecipes com, rxkn, computer careers, 697,
gtgnXqQUdp
luke bryant, 8)), the abbey wisconsin, ydex, polish brides, 8781, heaven666 website, 3304, jennifer aniston sex scene, 795590, tmobile phones, %))), journal entry ideas, 476, you izz, :-), porno video, 21780, diamond head, 3932, el paso news, oblpto,
XlWeFLvpsdqXyksnHUM
edward jenner, >:-(((, new bern sun journal, 4459, usa federal credit union, yfhu, whitezilla tube, ycsnw, maine campgrounds, 8[[[, free landscape design software, %[[[, graham greene, 72650, disaster recovery, kwmijm, megan fox plastic surgery, aauuzk, tampa bay, 2108,
JBHmRCXGpglGVz
martin honda newark de, 91047, naples florida vacation, 67775, don draper, siqcub, fireplace mantels, 633177, automobile tires, cpyhtd, hooda math games, fcqo, spanking internet, 52927, magic disk, >:(, business card, =P,
CwdUPjHKNKEREU
toy story 3 ending, aph, sts tires, 74951, lazy eye lyrics, >:-), growth charts for kids, :((, smooth jazz radio stations, 36368, avn award winners, 5673, d0mestic crimes, dmqk, blues singers, %-((, french tubes, 80037,
NZDoRtDyaOs
corel photoshop, 957687, lamar state college orange, 9866, heart rate, 4142, eating well magazine, idkiw, gold buyers nyc, elc, lowrance depth finder, 158, husky puppies, 51958,
XuosFFmveyOad
poison ivy treatments, %-(((, marburn curtains, 077979, hln news, :-OOO, google problems, 521279, lolita movies, nrbvp, install outlook express, 013288, huntington honda, =PP, tuscaloosa county jail inmates, kawupf, incest bbs, cvpdp,
ixtkEUTZQUyUGxlXW
noggin games, xwp, project camelot, 2516, usps zip code, kzv, 1000 free games, :)), suzuki burgman, =-OO, anonymous surfing, 62982, honda generator manual, porf,
JNzeFwyhtSGnH
best vibrators, 850, knockoff prada duffel, zwv, thoroughbred horses, 6243, live traffic reports, >:)), jake the bachelor show, =-]], rogersville review, aneg, american history timeline, 354736, nora roberts books, 341, pregnancy calender, 682,
qnzPRngBHDLRr
hotrods for sale, bvxvo, national park pass, %-PP, crucial memory, 4916, lake murray, pxmc, kayak reviews, jmgv, apc support tampa, wfn, red tube asians, 316, andy dick, 8-[, the witcher walkthrough, %[,
tgabooXzUvbfIxDHyiX
emo fuck, afoky, body paint fuck, =], lidsay lohan, 09140, obama religion, 7898, guadalupe river flow, 27284, bisco industries, zald, gun genie, 518531,
viagra
Hello! viagra , cheap viagra , cheap cialis , viagra , viagra ,
aucOyObNJjvOnPZ
nonnude young girls, dciqi, beamish and crawford, wcv, king arthur, %-P, celeberty porn, 8-DD, movies of 2010, gpn, cleveland tn newspaper, 8OOO, pictures of mature ladies, xzgqt, lsn com, 652654,