← All writingACM中文辗转相除用具体数值演示辗转相除求最大公因数,并通过回代将最大公因数表示为原来两个整数的线性组合。iSaber#number-theoryWritten2022-07-05PublishedNov 14, 2026, 6:02 PMUpdatedJul 5, 2022, 12:08 AM辗转相除 求a,ba, ba,b的最大公因数,并把它表示为a,ba, ba,b的线性组合 e.g. a=252,b=198e.g. \ \ \ a = 252, b= 198e.g. a=252,b=198 252=1∗198+54198=3∗54+3654=1∗36+1836=2∗18+0252 = 1 * 198 + 54\\ 198 = 3*54+36\\ 54=1*36+18\\ 36=2*18 + 0\\252=1∗198+54198=3∗54+3654=1∗36+1836=2∗18+0 所以(a,b)=(252,198)=(198,54)=(54,36)=(36,18)=(18,0)=18(a, b) = (252, 198)= (198, 54) = (54, 36) = (36, 18) = (18, 0) = 18(a,b)=(252,198)=(198,54)=(54,36)=(36,18)=(18,0)=18 18=54−3618=54−(198−3∗54)=4∗54−19818=4∗(252−198)−198=4∗252−5∗19818 = 54 - 36\\ 18 = 54 - (198 - 3 * 54) = 4 * 54 - 198\\ 18 = 4 * (252 - 198) - 198 \\ =4 * 252 - 5 * 19818=54−3618=54−(198−3∗54)=4∗54−19818=4∗(252−198)−198=4∗252−5∗198← Back to ArchiveBack to top ↑CommentsRefresh commentsNo approved comments yet.Your display name and plain-text comment become public only after owner approval. No account or email is required.Enable JavaScript to submit a comment. Approved comments remain readable.Display nameCommentSubmit for moderation
Comments
No approved comments yet.
Your display name and plain-text comment become public only after owner approval. No account or email is required.