Talk:06-240/Homework Assignment 4: Difference between revisions
No edit summary |
m (Reverted edit of 218.233.31.250, changed back to last version by Drorbn) |
||
Line 1: | Line 1: | ||
== Divisibility by Prime Number== |
|||
[http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/dixopu.htm free wwe ringtones] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/fivede.htm lisinopril online] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/hyguf.htm free nextel ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=49 nokia ringtones] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/MartinGeword buy valium] [http://dcc.syr.edu/dforum/message.asp?MessageID=49064 real ringtones] [http://ist.greenville.edu/drupal/files/nesoz.html cheap adipex] [http://www.hollins.edu/ubb/Forum32/HTML/000284.html cheap phentermine] [http://www.hollins.edu/ubb/Forum32/HTML/000377.html sony ericsson ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/JackLawson/wujygyp.htm cheap norco] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/welop.htm cheap vigrx] [http://dcc.syr.edu/dforum/message.asp?MessageID=49023 cheap meridia] [http://www.hollins.edu/ubb/Forum32/HTML/000350.html order diethylpropion] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/RaimusNuhem nokia ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/luku.htm xenical online] [http://ist.greenville.edu/drupal/files/huki.html qwest ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49078 free mono ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000298.html clonazepam online] [http://www.hollins.edu/ubb/Forum32/HTML/000282.html soma online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/pyfi.htm free sony ringtones] [http://ist.greenville.edu/drupal/files/woryh.html free motorola ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/fuzuhe.htm order cialis] [http://bugzilla.internet2.edu/attachment.cgi?id=749 sony ericsson ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/noliwu.htm free midi ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=37 paxil online] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=261 tracfone ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=254 cheap xanax] [http://bugzilla.internet2.edu/attachment.cgi?id=723 alltel ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/tofi.htm xanax online] [http://www.hollins.edu/ubb/Forum32/HTML/000344.html buy pharmacy online] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/jicir.htm viagra online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/vojenyx.htm alprazolam online] [http://ist.greenville.edu/drupal/files/sotuky.html soma online] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/wudytel.htm sonyericsson ringtones] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/RobertDelise cheap ultram] [http://bugzilla.internet2.edu/attachment.cgi?id=724 alprazolam online] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/webid.htm cheap hoodia] [http://dcc.syr.edu/dforum/message.asp?MessageID=49017 diazepam online] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/rifykup.htm order albuterol] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=14 online soma] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/hebur.htm free qwest ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=756 free verizon ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=729 clonazepam online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SherylDiu/kygo.htm kyocera ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/suvycez.htm cheap soma] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/jucidul.htm cheap hgh] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/pyro.htm buy ambien] [http://grid.unimelb.edu.au/twiki/pub/Main/NoriJohn/bepi.htm nextel ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000315.html xenical online] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/kyvydin.htm norco online] [http://dcc.syr.edu/dforum/message.asp?MessageID=48834 cheap tramadol] [http://dcc.syr.edu/dforum/message.asp?MessageID=49026 cheap vicodin] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/tidu.htm free verizon ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/jivugyv.htm free alltel ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000371.html free music ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=748 cheap soma] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=52 free funny ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=731 funny ringtones] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/cogope.htm cialis online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49058 tracfone ringtones] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/solizup.htm tramadol online] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/ArturJonson order xanax] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/duxeru.htm but vigrx] [http://dcc.syr.edu/dforum/message.asp?MessageID=49066 samsung ringtones] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/wytyvib.htm buy fioricet] [http://bugzilla.internet2.edu/attachment.cgi?id=741 buy paxil] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=40 cheap ambien] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/tijohyw.htm free sprint ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/jetok.htm free mp3 ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=20 fioricet online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/pefuwe.htm lipitor online] [http://ist.greenville.edu/drupal/files/wohux.html cheap ultracet] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/ligi.htm cheap tenuate] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/cucof.htm buy soma] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/LukeLookin phentermine online] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/pinucep.htm vicodin online] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/hujox.htm ortho online] [http://ist.greenville.edu/drupal/files/wusywyx.html cheap vicodin] [http://ist.greenville.edu/drupal/files/lunic.html cheap levitra] [http://dcc.syr.edu/dforum/message.asp?MessageID=49024 adipex] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/vuxinuz.htm motorola ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=722 adipex online] [http://www.hollins.edu/ubb/Forum32/HTML/000365.html free nextel ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=21 ultram online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/jusify.htm nokia ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=262 free funny ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=48922 buy carisoprodol] [http://bugzilla.internet2.edu/attachment.cgi?id=742 phentermine online] [http://www.hollins.edu/ubb/Forum32/HTML/000283.html order valium] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/jowili.htm qwest ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000342.html tenuate online] [http://bugzilla.internet2.edu/attachment.cgi?id=750 sonyericsson ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/licox.htm motorola ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000319.html cheap cyclobenzaprine] [http://www.hollins.edu/ubb/Forum32/HTML/000295.html order norco] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/tokuny.htm lortab online] [http://www.hollins.edu/ubb/Forum32/HTML/000354.html flexeril online] [http://bugzilla.internet2.edu/attachment.cgi?id=752 tracfone ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000285.html cheap carisoprodol] [http://www.hollins.edu/ubb/Forum32/HTML/000299.html paxil] [http://dcc.syr.edu/dforum/message.asp?MessageID=49063 qwest ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=249 tramadol online] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/sywexyc.htm buy levitra] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/zexuc.htm didrex online] [http://www.hollins.edu/ubb/Forum32/HTML/000380.html free punk ringtones] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/kite.htm ultracet online] [http://www.hollins.edu/ubb/Forum32/HTML/000311.html buy hydrocodone] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=42 buy xenical] [http://ist.greenville.edu/drupal/files/luho.html free nokia ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/rufog.htm free sprint ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/jujope.htm buy diethylpropion] [http://www.hollins.edu/ubb/Forum32/HTML/000294.html adipex online] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/roteryh.htm free polyphonic ringtones] [http://cyrusimap.web.cmu.edu/twiki/bin/view/Main/AndreaHolivel cialis online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49016 order ultram] [http://www.hollins.edu/ubb/Forum32/HTML/000336.html cheap clomid] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/hijosij.htm free sagem ringtones] [http://ist.greenville.edu/drupal/files/bigibe.html nextel ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49027 cheap alprazolam] [http://www.hollins.edu/ubb/Forum32/HTML/000288.html order ultram] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/hicif.htm alprazolam online] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/sujy.htm samsung ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=25 cheap viagra] [http://bugzilla.internet2.edu/attachment.cgi?id=735 free motorola ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/jybuhi.htm cheap viagra] [http://dcc.syr.edu/dforum/message.asp?MessageID=48916 phentermine online] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=256 cheap ultram] [http://bugzilla.internet2.edu/attachment.cgi?id=760 diazepam online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/xyhyj.htm rivotril online] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/vuru.htm cheap ativan] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/hykidi.htm clonazepam online] [http://www.hollins.edu/ubb/Forum32/HTML/000281.html cheap tramadol] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=253 buy carisoprodol] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=26 meridia online] [http://ist.greenville.edu/drupal/files/dydyse.html cheap valium] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/rukexo.htm cheap zoloft] [http://ist.greenville.edu/drupal/files/kuxer.html cyclobenzaprine online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/cybo.htm sonyericsson ringtones] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/nezyz.htm cheap flexeril] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/lyfogo.htm xanax] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/wofo.htm nokia ringtones] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/sonuhop.htm cheap valium] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/RobertSmith/pevesuz.htm wellbutrin online] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/rypel.htm sildenafil] [http://www.hollins.edu/ubb/Forum32/HTML/000339.html order zoloft] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=251 valium online] [http://www.hollins.edu/ubb/Forum32/HTML/000384.html free midi ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000290.html cialis online] [http://bugzilla.internet2.edu/attachment.cgi?id=744 qwest ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=266 real ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/kino.htm real ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/belizyl.htm free polyphonic ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/PhillipRewers/dijuxoj.htm tracfone ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000322.html cheap ultracet] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=28 norco online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49072 polyphonic ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=732 buy levitra] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/woguked.htm ambien online] [http://www.hollins.edu/ubb/Forum32/HTML/000334.html sildenafil online] [http://www.hollins.edu/ubb/Forum32/HTML/000333.html prozac online] [http://ist.greenville.edu/drupal/files/rucod.html xanax] [http://www.hollins.edu/ubb/Forum32/HTML/000343.html ortho online] [http://ist.greenville.edu/drupal/files/wypy.html funny ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000296.html vicodin online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BilyKroft/koky.htm phentermine online] [http://bugzilla.internet2.edu/attachment.cgi?id=740 cheap norco] [http://ccfl.unl.edu/twiki/pub/Main/HermanHogg/figog.htm lortab online] [http://ccfl.unl.edu/twiki/pub/Main/AlexCarneyham/kozu.htm cheap hydrocodone] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=24 ativan online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/AshleighRodriquez/godufit.htm buy paxil] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/sevuv.htm free mono ringtones] [http://bugzilla.internet2.edu/attachment.cgi?id=755 valium] [http://grid.unimelb.edu.au/twiki/pub/Main/JamesMiller/sicofyr.htm tramadol online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/kuvodoj.htm cheap zoloft] [http://dcc.syr.edu/dforum/message.asp?MessageID=49034 hydrocodone online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49022 cheap viagra] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/BettySmith/niwupu.htm but albuterol] [http://ccfl.unl.edu/twiki/pub/Main/MarthaBell/gedenu.htm cheap rivotril] [http://ccfl.unl.edu/twiki/pub/Main/PaulinePauline/dyzoko.htm verizon ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000314.html lorazepam online] [http://grid.unimelb.edu.au/twiki/pub/Main/JackLawson/rejyvob.htm viagra online] [http://www.hollins.edu/ubb/Forum32/HTML/000325.html didrex online] [http://ccfl.unl.edu/twiki/pub/Main/SummersFrank/kuzypuh.htm phentermine online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/SelmaJeremy/nofelyr.htm free cingular ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000389.html ericsson ringtones] [http://dcc.syr.edu/dforum/message.asp?MessageID=49077 free sony ericsson ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=267 free motorola ringtones] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/kuluc.htm zanaflex online] [http://wwwx.cs.unc.edu/~kmp/twiki40/pub/Main/JustinJonson/gekiw.htm order flexeril] [http://www.hollins.edu/ubb/Forum32/HTML/000369.html free samsung ringtones] [http://devel.linux.duke.edu/bugzilla/attachment.cgi?id=259 nokia ringtones] [http://www.coe.unt.edu/chec/forum/forum_posts.asp?TID=22 cheap diazepam] [http://www.hollins.edu/ubb/Forum32/HTML/000376.html free sonyericsson ringtones] [http://ist.greenville.edu/drupal/files/devowy.html buy lorazepam] [http://ist.greenville.edu/drupal/files/role.html free real ringtones] [http://www.hollins.edu/ubb/Forum32/HTML/000351.html cheap rivotril] [http://www.hollins.edu/ubb/Forum32/HTML/000312.html buy ambien] [http://www.hollins.edu/ubb/Forum32/HTML/000337.html albuterol online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49018 cialis online] [http://dcc.syr.edu/dforum/message.asp?MessageID=49035 ambien online] == Divisibility by Prime Number== |
|||
Pls correct me if I were wrong. |
Pls correct me if I were wrong. |
||
Line 9: | Line 9: | ||
|- |
|- |
||
|<div align="right"> 10<s>5</s> |
|<div align="right"> 10<s>5</s> |
||
| 105/7=21 |
|||
| |
|- |
||
|<div align="right"> ---- |
|||
|- |
|||
|<div align="right">863<s>1</s></div> |
|||
|- |
|||
|<div align="right">2<s>1</s></div> |
|||
| 21/7=3 |
|||
|- |
|||
|<div align="right"> ---</div> |
|||
|- |
|||
|<div align="right">86<s>1</s></div> |
|||
|- |
|||
|<div align="right">2<s>1</s></div> |
|||
| 21/7=3 |
|||
|- |
|||
|<div align="right"> --</div> |
|||
|- |
|||
|<div align="right">8<s>4</s></div> |
|||
|- |
|||
|<div align="right">8<s>4</s></div> |
|||
| 84/7=12 |
|||
|- |
|||
|<div align="right"> -</div> |
|||
|- |
|||
|<div align="right">0</div> |
|||
| 0/7=0 |
|||
|} |
|||
Since it is an operation of series subtraction by multiples of 7, therefore the number we started from is divisible by 7 iff the resulting number is divisible by 7. |
|||
Moreover, there is a relationship between the unit digit, 2, and 7. The unit digit multiple by 21(7 <math> \times </math> 3) is equal to the combination of the unit digit with its 2-time as the tenth/hundredth digit. |
|||
{|border="1" |
|||
!Unit digit, <math>x</math> !! <math>x \times 3 \times 7</math> |
|||
|- |
|||
|0 |
|||
|0 |
|||
|- |
|||
|1 |
|||
|21 |
|||
|- |
|||
|2 |
|||
|42 |
|||
|- |
|||
|3 |
|||
|63 |
|||
|- |
|||
|4 |
|||
|84 |
|||
|- |
|||
|5 |
|||
|105 |
|||
|- |
|||
|6 |
|||
|126 |
|||
|- |
|||
|7 |
|||
|147 |
|||
|- |
|||
|8 |
|||
|168 |
|||
|- |
|||
|9 |
|||
|189 |
|||
|} |
|||
From the table above, I've induced the criterion for divisibility by 17 that is similar operation but the unit digit multiplies by 5 instead of 2. For divisibility by 13, the unit digit multiple by 9. Alright, I think it will be more fun if it's explained by other people. [[User:Wongpak|Wongpak]] 09:38, 5 October 2006 (EDT) |
|||
== Excellent! == |
|||
--[[User:Drorbn|Drorbn]] 12:09, 5 October 2006 (EDT) |
|||
I found the problem solved three different ways at Jim Loy's divisibility page[http://www.jimloy.com/number/divis.htm] |
|||
He mentions the problem as stated can be found in ''The Dictionary of Curious and Interesting Numbers'' by David Wells. |
|||
I prefer his second method. Beginning from the right most digit, multiply corresponding digits by the following sequence of coefficients 1, 3, 2, 6, 4, 5. For larger numbers sequence repeats. Alternatively the sequence 1, 3, 2, -1, -3, -2 could be used. |
|||
Using the given example <math>86415\Rightarrow 1(5)+3(1)+2(4)-1(6)-3(8)=-14\Rightarrow 7|86415</math> |
|||
Coefficients can be determined by taking multiplying the previous coefficient by 10 and take the modulus of this new number. |
|||
For n=17, sequence begins with 1 multiply by 10 then |
|||
<math>10\equiv 10 \mod(17),\quad 10\cdot 10\equiv 15\mod(17) \Rightarrow 15\equiv -2\mod(17)</math> |
|||
So for n=17, sequence is: 1, 10, 15, 14, 4, 6, 9, 5, 16, 7, 2, 3, 13, 11, 8, 12 |
|||
or alternatively: 1, -7, -2, -3, 4, 6, -8, 5, -1, 7, 2, 3, -4, -6, 8, -5 |
|||
== Nice, but... == |
|||
but for each divisibility you have to memorize (or calculate again and again) a whole sequence of numbers, rather than just one. --[[User:Drorbn|Drorbn]] 10:30, 10 October 2006 (EDT) |
Revision as of 09:34, 4 May 2007
Divisibility by Prime Number
Pls correct me if I were wrong. The operation of cut away the unit digit is a distraction. If we consider the unit digit, the operation basically is a deduction of a number, and that number is divisible by 7. The whole operation is shown as follow:
8641 | |
10 |
105/7=21 |
----
| |
863
| |
2
|
21/7=3 |
---
| |
86
| |
2
|
21/7=3 |
--
| |
8
| |
8
|
84/7=12 |
-
| |
0
|
0/7=0 |
Since it is an operation of series subtraction by multiples of 7, therefore the number we started from is divisible by 7 iff the resulting number is divisible by 7.
Moreover, there is a relationship between the unit digit, 2, and 7. The unit digit multiple by 21(7 3) is equal to the combination of the unit digit with its 2-time as the tenth/hundredth digit.
Unit digit, | |
---|---|
0 | 0 |
1 | 21 |
2 | 42 |
3 | 63 |
4 | 84 |
5 | 105 |
6 | 126 |
7 | 147 |
8 | 168 |
9 | 189 |
From the table above, I've induced the criterion for divisibility by 17 that is similar operation but the unit digit multiplies by 5 instead of 2. For divisibility by 13, the unit digit multiple by 9. Alright, I think it will be more fun if it's explained by other people. Wongpak 09:38, 5 October 2006 (EDT)
Excellent!
--Drorbn 12:09, 5 October 2006 (EDT)
I found the problem solved three different ways at Jim Loy's divisibility page[1] He mentions the problem as stated can be found in The Dictionary of Curious and Interesting Numbers by David Wells.
I prefer his second method. Beginning from the right most digit, multiply corresponding digits by the following sequence of coefficients 1, 3, 2, 6, 4, 5. For larger numbers sequence repeats. Alternatively the sequence 1, 3, 2, -1, -3, -2 could be used.
Using the given example
Coefficients can be determined by taking multiplying the previous coefficient by 10 and take the modulus of this new number.
For n=17, sequence begins with 1 multiply by 10 then
So for n=17, sequence is: 1, 10, 15, 14, 4, 6, 9, 5, 16, 7, 2, 3, 13, 11, 8, 12
or alternatively: 1, -7, -2, -3, 4, 6, -8, 5, -1, 7, 2, 3, -4, -6, 8, -5
Nice, but...
but for each divisibility you have to memorize (or calculate again and again) a whole sequence of numbers, rather than just one. --Drorbn 10:30, 10 October 2006 (EDT)