A SOLUTION TO THE ARITHMETIC PROBLEM OF FINDING A NUMBER WHICH, DIVIDED BY GIVEN NUMBERS, LEAVES BEHIND GIVEN REMAINDERS

Similar documents
5.4 Exponential Functions: Differentiation and Integration TOOTLIFTST:

Question 3: How do you find the relative extrema of a function?

Lecture 20: Emitter Follower and Differential Amplifiers

ESCI 241 Meteorology Lesson 6 Humidity

New Basis Functions. Section 8. Complex Fourier Series

Schedule C. Notice in terms of Rule 5(10) of the Capital Gains Rules, 1993

Reading. Minimum Spanning Trees. Outline. A File Sharing Problem. A Kevin Bacon Problem. Spanning Trees. Section 9.6

5 2 index. e e. Prime numbers. Prime factors and factor trees. Powers. worked example 10. base. power

Approximate Subtree Identification in Heterogeneous XML Document Collections

Transistor is a semiconductor device with fast respond and accuracy. There are two types

Econ 371: Answer Key for Problem Set 1 (Chapter 12-13)

CPS 220 Theory of Computation REGULAR LANGUAGES. Regular expressions

E X C H A N G E R U L E S A N D C L E A R I N G R U L E S O F N A S D A Q O M X D E R I V A T I V E S M A R K E T S

Uses for Binary Trees -- Binary Search Trees

The example is taken from Sect. 1.2 of Vol. 1 of the CPN book.

Link-Disjoint Paths for Reliable QoS Routing

SPECIAL VOWEL SOUNDS

QUANTITATIVE METHODS CLASSES WEEK SEVEN

Lecture 3: Diffusion: Fick s first law

Algorithmic Aspects of Access Networks Design in B3G/4G Cellular Networks

HOMEWORK FOR UNIT 5-1: FORCE AND MOTION

Mathematics. Mathematics 3. hsn.uk.net. Higher HSN23000

AP Calculus AB 2008 Scoring Guidelines

Subject: Medicaid and CHIP: Enrollment, Benefits, Expenditures, and Other Characteristics of State Premium Assistance Programs

Usability Test Checklist

Logo Design/Development 1-on-1

Enhancing Downlink Performance in Wireless Networks by Simultaneous Multiple Packet Transmission

Factorials! Stirling s formula

Plato s Apology of Socrates

Outside Cut 1 of fabric Cut 1 of interfacing

Level 3. Monday FRACTIONS ⅔ ⅗ 2) ⅔ =?/18. 1) What is a) ⅕ of 30? b) ⅖ of 30?

Magic Message Maker Amaze your customers with this Gift of Caring communication piece

CRITO PLATO KRITWN PLATWN

Foreign Exchange Markets and Exchange Rates

One Ring to Rule them All: Service Discovery and Binding in Structured Peer-to-Peer Overlay Networks

Back left Back right Front left Front right. Blue Shield of California. Subscriber JOHN DOE. a b c d

STATEMENT OF INSOLVENCY PRACTICE 3.2

Hospitals. Internal Revenue Service Information about Schedule H (Form 990) and its instructions is at

Oracle PL/SQL Programming Advanced

Compression Outline. LZ77: Sliding Window Lempel-Ziv. Lempel-Ziv Algorithms. CPS 296.3:Algorithms in the Real World

Version 1.0. General Certificate of Education (A-level) January Mathematics MPC3. (Specification 6360) Pure Core 3. Final.

Operational Procedure: ACNC Data Breach Response Plan

Chapter 3 Chemical Equations and Stoichiometry

11 + Non-verbal Reasoning

Traffic Flow Analysis (2)

Probabilistic maintenance and asset management on moveable storm surge barriers

Remember you can apply online. It s quick and easy. Go to Title. Forename(s) Surname. Sex. Male Date of birth D

A Note on Approximating. the Normal Distribution Function

Chapter 10 Function of a Matrix

CHAPTER 4c. ROOTS OF EQUATIONS

B April 21, The Honorable Charles B. Rangel Ranking Minority Member Committee on Ways and Means House of Representatives

Performance Evaluation

Category 7: Employee Commuting

Diagram Editing with Hypergraph Parser Support

YOUR MATARIKI KETE PRIMARY EDITION. Learn about Matariki. How do you find it in the sky and why is it important?

by John Donald, Lecturer, School of Accounting, Economics and Finance, Deakin University, Australia

ME 612 Metal Forming and Theory of Plasticity. 6. Strain

Financial Mathematics

Condominium Project Questionnaire Full Form

Adverse Selection and Moral Hazard in a Model With 2 States of the World

Rural and Remote Broadband Access: Issues and Solutions in Australia

Standard Conditions for Street Traders The Royal Borough of Kensington and Chelsea. Revised standard conditions for street trading

Electronic Commerce. and. Competitive First-Degree Price Discrimination

WORKERS' COMPENSATION ANALYST, 1774 SENIOR WORKERS' COMPENSATION ANALYST, 1769

Network Decoupling for Secure Communications in Wireless Sensor Networks

Incomplete 2-Port Vector Network Analyzer Calibration Methods

Outline. Binary Tree

Sharp bounds for Sándor mean in terms of arithmetic, geometric and harmonic means

Predicting Current User Intent with Contextual Markov Models

Cloud and Big Data Summer School, Stockholm, Aug., 2015 Jeffrey D. Ullman

Long run: Law of one price Purchasing Power Parity. Short run: Market for foreign exchange Factors affecting the market for foreign exchange

Physics 106 Lecture 12. Oscillations II. Recap: SHM using phasors (uniform circular motion) music structural and mechanical engineering waves

Section A This ONE question is compulsory and MUST be attempted

Table 1: Phonemes to graphemes (consonants)

Lecture notes: 160B revised 9/28/06 Lecture 1: Exchange Rates and the Foreign Exchange Market FT chapter 13

FACULTY SALARIES FALL NKU CUPA Data Compared To Published National Data

Intermediate Macroeconomic Theory / Macroeconomic Analysis (ECON 3560/5040) Final Exam (Answers)

Chapter 2: Privatization, Diffusion of Share Ownership, and Politics

Who uses our services? We have a growing customer base. with institutions all around the globe.

MORTALITY SWAPS AND TAX ARBITRAGE IN THE CANADIAN INSURANCE AND ANNUITY MARKETS

2. Properties of Functions

Use a high-level conceptual data model (ER Model). Identify objects of interest (entities) and relationships between these objects

Economics 340: International Economics Andrew T. Hill Nontariff Barriers to Trade

Parallel and Distributed Programming. Performance Metrics

In the previous two chapters, we clarified what it means for a problem to be decidable or undecidable.

CPU. Rasterization. Per Vertex Operations & Primitive Assembly. Polynomial Evaluator. Frame Buffer. Per Fragment. Display List.

Entity-Relationship Model

1.- L a m e j o r o p c ió n e s c l o na r e l d i s co ( s e e x p li c a r á d es p u é s ).

25/8/94 (previous title) 08/06/12 [15/05/13 Formal Delegations amended] 15/12/95 13/10/00 2/11/01, 9/9/05, 14/12/11 5 yearly Immediately

Hardware Modules of the RSA Algorithm

Revised Conditions (January 2009) LLOYDS BANKING GROUP SHARE ISA CONDITIONS

Dinh Hong Giang 1,2, Ed Sarobol 2, * and Sutkhet Nakasathien 2 ABSTRACT

CIRCUITS AND ELECTRONICS. Basic Circuit Analysis Method (KVL and KCL method)

Elliptic Functions sn, cn, dn, as Trigonometry W. Schwalm, Physics, Univ. N. Dakota

A122 MARION COUNTY HEALTH BUILDING HVAC, GLAZING AND LIGHTING RENOVATION 75% DOCUMENTS 08/31/2015

Analyzing the Economic Efficiency of ebaylike Online Reputation Reporting Mechanisms

LG has introduced the NeON 2, with newly developed Cello Technology which improves performance and reliability. Up to 320W 300W

Indiana Safe Routes to School Assessment

GOAL SETTING AND PERSONAL MISSION STATEMENT

Binary Search Trees. Definition Of Binary Search Tree. The Operation ascend() Example Binary Search Tree

Transcription:

A SOLUTION TO THE ARITHMETIC PROBLEM OF FINDING A NUMBER WHICH DIVIDED BY GIVEN NUMBERS LEAVES BEHIND GIVEN REMAINDERS LEONHARD EULER 0 Prolms o this sort an oun in ommon ooks o arithmti rywhr ut thir solutions rquir mor stuy an lrnss than thy appar. Although in many algorithms ha n propos y whih w an otain a solution through ingnuity nrthlss thy ar ithr not gnraliz to ry as an aus th irumstans o th qustion ar too inrquntly ix thy ar o no gratr us; or thy ar n just als. Th onstrution o magi squars has n han own long ago in th arithmti traition; howr n th grat ingnuity o La Hir an Sauur is insuiint or ining a solution. Likwis y a similar mtho th prolm rsol or narly all ass so that w in a numr whih ii y 2 3 4 5 an las as a rmainr ut is iisil y 7 without rmainr: truly nowhr has a suital mtho or soling prolms o this typ n shown; a solution may oun in a grat numr o ass an through tsting alus. 2 I th iisors ar small so ar as in this xampl th solution is asily oun y trial-an-rror; prolms o this sort woul mor iiult howr i th propos iisors wr ry larg. An so th mtho or soling prolms o this typ n now is not gnral xtning qually to oth larg iisors an to small ons; not in ain o I ha onin in my ollt work a mtho y whih without tsting alus suh prolms an rsol or n th largst iisors. 3 Hnorth I will prsnt my work on th prolm in th orr in whih I ha onsir it an I gin with th simplst as in whih a singl iisor is gin an w sk a numr whih whn ii y sai iisor las a gin rmainr. To wit a numr z is sought whih whn ii y a numr a las p as a rmainr. Th solution to this qustion is ry simpl or it will z = ma + p with m noting any intgr; it is lar that this solution is unirsal an all solutions ar inlu in this xprssion. Moror rom this w an isrn that i w know on solution thn ininitly many solutions an oun whn w a multipls o a to it or i it is possil sutrat multipls o a. But th smallst solution will p that is 0a + p whih gis th solution a + p an thn 2a + p 3a + p 4a + p an all th numrs onstituting th arithmti progrssion with onstant irn a ollow. 4 Haing propos this w pro to th as in whih multipl ix iisors with orrsponing rmainrs ar propos. For howr many propos iisors thr will th qustion an always ru to th as in whih two iisors ar gin. How I will show in th ollowing pags. Consir th numr z whih whn ii y a las p an y las q; an lt a gratr than. Thn aus z was rquir to la rmainr p whn ii y a it must o th orm ma + p. From th othr onition in whih z ii y las rmainr q w ha z = n + q. For this rason sin ma + p = n + q 0 Originally pulish in Commntarii aamia sintiarum Ptropolitana 7 (740) pp.4-. Translat y Crystal Lai Bnjamin Russll an Kathy Yu unr th suprision o Stphn Knny. Rrring to P. La Hir s (40-78) Ds quarrz ou tals magiqus pulish in 93 an J. Sauur s (53-7) Constrution gnral s quarrs magiqus pulish in 70.

2 LEONHARD EULER 0 intgrs must trmin an sustitut in pla o m an n suh that ma + p = n + q an haing oun suh intgrs ma + p or n + q will th solution z. 5 Baus w ha ma + p = n + q n = ma+p q an haing st = p q thn n = ma+. Hn m shoul in suh that ma + is iisil y. Baus a > lt a = α + ; thn n = mα + m+ ; an lt m + amit iision y. Sin α an ar known quantitis oun y iision o a y thn α is th quotint an is th rmainr. Thn lt A = m+ so m = A ; osr that A must iisil y. I is iisil y th algorithm an omplt. [Without loss o gnrality] lt A = 0 so that m = an z = a + p. En i w want to aoi ngati numrs th xprssion amits ininit positi solutions or z. I howr is not iisil y whih woul ha ma A ii y an all th quotint β an th rmainr. By this A ought to an intgr lt us all it B whih will mak A = B+ B = 0 an A = β an m = an intgr 2 st = β + ; 3 that is = Aβ + A = m an A. Now shoul iisil y mak B+. I howr is not iisil y st = γ + ; an A = Bγ +. An st B+ = C so that B = C. Now i is iisil y st C = 0 an it will that B = an A = γ βγ an m = ; shoul C not yt an intgr st = δ + an thn B = Cδ + ; an mak C = D so that C = D+ until it is sn whthr is iisil y or not an in lattr as th algorithm ought to rpat as ao. 7 Baus a > an > an > an so on th squn a... is rasing so it ought to onrg to som alu whih is a iisor o. Th squn... is th ontinuing rmainr o th stanar algorithm y whih th gratst ommon iisor o a an is ustomarily oun whih I pla hr: n = ma+ a α a = α + m = A β = β + A = BC+ γ = γ + B = C δ = δ + C = D+ ɛ = ɛ + g D = E g g ζ = ζg + h E = F g+ h h g η g = ηh + i F = Gh i i h θ h = θi + k G = Hi+ k k 8 This algorithm y whih it is ustomary to in th gratst ommon iisor o th numrs a an shoul ontinu until it rahs th rmainr whih ought to ii. By th ollowing mtho whih w ha alray oun w instigat m. I is iisil y thn A = 0 an m =. I is iisil y thn B = 0 an A = an m = = β aus = β +. Thus th alus o m ar mor asily oun or th alu o A is. () m = A (2) m = B+β (3) m = C (+βγ) 2 By whih is mant it is asy to pik A suh that w nsur A is an intgr. 3 In th original txt th β w ha hr is a ariant ta. Howr it rrs to th sam ojt as whn Eulr uss β itsl thror or th sak o larity w ha us β in ths situations.

A SOLUTION TO THE ARITHMETIC PROBLEM 3 (4) m = D+(δ+βγδ+β) (5) m = E (δɛ+βγδɛ+βɛ+βγ+) g () m = F +(δɛζ+βγδɛζ+βɛζ+βγζ+ζ+δ+βγδ+β) h... Osr that th sign o altrnats thus: + + +. Thn th oiints o ollow this pattrn: β γ β βγ δ + βγδ + ɛ δ + β βγδɛ + δɛ ζ + βɛ + βγ +... whos progrssion is th sum o th pring trm multipli y th pring suprsript an th trm pring that on. 9 I is iisil y thn m = 0; i is iisil y thn m = aus A = 0; i is iisil y thn lt B = 0; an thn m = β. Whn th ollowing law is gin: I an intgr thn m = 0 m = m = + β m = (βγ + ) m = + (βγδ + δ + β) g m = g (βγδɛ + δɛ + βɛ + βγ + ) h m = + h (βγδɛζ + δɛζ + βɛζ + βγζ + βγδ + ζ + δ + β) t. Now i ths alus o m ar sustitut in th quation z = ma + p th ollowing is otain: I an intgr thn z = q + = q + z = q α z = q + (αβ + ) z = q (αβγ + α + γ) z = q + (αβγδ + αβ + αδ + γδ + ) g z = q g (αβγδɛ + αβγ + αβɛ + αδɛ + γδɛ + α + γ + ɛ t. 0 To in th numr z whih ii y a las p an y las q with p q = propos w ha th ollowing rul: th algorithm is uilt to in th gratst ommon iisor o a an an rom this iisor w an prou a rmainr whih is th iisor o itsl an whatr quantity w otain y th iiing y th rmainr all it Q is whr th algorithm ns. Thn th quantitis α β γ t. rsulting rom this iision an writtn as a squn ma o ths numrs: th nw sris α αβ + αβγ + α + γ t. whih is orm rom th prious squn o numrs an in this ashion it shoul ontinu. Unr this nw squn altrnating signs ar writn: + + t. an th last trm along with its sign is multipli y Q an also y th smallr iisor ; an to this prout is a th rmainr q orrsponing to th iisor. In this mannr th solution will onstrut. W an in on solution z in this way rom whih many othr solutions ar oun. For i z ii y a las p an y las q th numrs a + z 2a + z an ma + z will ha th sam quality. Multipls o th prout a an ontinously a or sutrat i a an ar rlatily prim. But i a an ar omposit numrs thn it suis to tak thir last ommon iisor; aing an sutrating multipls (rom z) yils mor solutions suh that i th smallst ommon iisor is M all solutions w want ar o th orm mm + z.

4 LEONHARD EULER 0 2 Baus this algorithm is st illustrat y xampls w sk a numr whih whn ii y 03 has a rmainr o 87 an whn ii y 57 has a rmainr o 25. Lt a = 03; = 57; p = 87 an q = 25 an = 2; hn I isplay this algorithm: 57 03 57 2 4 57 2 = 3 = Q. 4 4 4 44 2 4 2 9 + + Now 9 3 = 279; an on solution is 25 57 279; sin this is ngati a to it 3 57 03 that is 57 309 an thn 25 + 57 30 = 735 whih is th smallst suh numr; thus ry solution is o th orm m 03 57 + 735. 3 Hratr w sk a numr whih whn ii y 4 las a rmainr o 0 an whn ii y 29 las a rmainr o 28. In this xampl I mploy a shortut aus in othr similar omputations it will ha grat utility: whn iiing y 29 th rmainr woul 28 - this an also onsir rmainr o y th sam iision i it is known that th quotint is gratr y. I us as th rmainr o iision y 29; thn a = 4 = 29 p = 0 an q = ; hn =. So I pla th algorithm low: 29 4 29 2 29 2 = = Q. 24 5 2 2 0 2 5 2 4 2 2 2. 3 7 7 + + + Thn 7 = 87; an a solution is + 29 87. Sutrating y 29 4 4 yils + 29 23 =. Ery solution an writtn in th orm m 4 29 +. 4 Mor gnrally th algorithm ontinus so that atr th numr Q is multipli y th last numr o th squn this prout is thn ii y th largr iisor a. Th rmainr o this iision multipli y th iisor an thn inras y th rmainr q will gi th solution. Furthr th solution oun y this mtho is in at th smallst numr that satisis th quation. Thrror y this iision opration w an gt a positi rmainr n i th iin is ngati. In th irst xampl rom stion 2 w ha 279 whih ii y 03 las +30. Thn th smallst solution is 25 + 57 30 = 735. 5 Now that this is possil xampls whih amit no solutions at all may prsnt suh as i a numr is sought whih whn ii y 24 has a rmainr o 3 y 5 a rmainr o 9; in y th lattr onition suh a numr ought to iisil y 3 ut y th ormr it shoul not. Th ollowing

A SOLUTION TO THE ARITHMETIC PROBLEM 5 prinipl las to th sam onlusion that no suh rmainr whih is lt hin whn that is 4 iis is arri at xluing 0 as th ollowing algorithm shoul show 5 24 5 9 5 9 9 3 2 0 In w annot apply our algorithm to xampls o this kin i th iisors a an ar rlatily omposit; ut shoul thy oprim thn solutions ar always al to oun. Furthrmor shoul th iisors a an omposit numrs an not iisil y th gratst ommon iisor o a an thn th prolm always las to asurity. This is th ritrion y whih it an i whthr th prolm amits a solution or th algorithm is gun. Now that this unirsal mtho y whih ry ariation o th prolm is al to asily sol has n xplain anothr rul an orm rom it whih is asily arri out ut is simplr. Moror this ollows i haing isor th alus o z ao in pla o α β γ t. thir alus rom th quations a = α + = β + t. ar sustitut. For i th algorithm to in th gratst ommon iisor o a an is gun thn rom it th rmainrs t. ar oun; all this numr z = ( q + a a + + ) ontinuing this sris until is iisil y anothr ator o th nominator. For xampl i w sk a numr whih whn ii y has a rmainr o an ii y 9 has a rmainr o 7 thn a = = 9 p = q = 7 an =. Hn: 9 9 7 9 7 2 7 3 So z = 7 9 ( 9 9 7 + ) 7 2 = 7 + 7 3 9 7 = 3 = 47. Thror all numrs m 44 47 that is m 44+97 satisy th ontraints; an th minimum possil alu is 97. As ( ao a gnral ormula ) or z an xprss in this mannr in whih th sris o rations z = p a + + is ontinu until th alu o z oms an intgr. 7 I will now onsir som spial ass in whih a an ha a gin rlation; irst lt = a or a = + an lt th rmainrs o th numr in qustion ii y a an p an q as thy wr or. Thn = ; an y th prious rul z = p a = p ap + aq. I aq + p > ap gis th minimum solution thn this is th xprssion (or z): an i aq + p < ap thn th smallst solution will a 2 a + p ap + aq. All solutions ar xprss y th gnral ormula ma 2 ma + p ap + aq an analogously m 2 m + q p + q. For whatr alu o m th rmainr o this quantity ii y 2 + will th smallst solution. 8 In this way y ining this xprssion in trms o th gin rmainrs an thn what rmains atr iision y an + th unknown numr itsl may oun as (Mihal) Stil writs in his Commntary on

LEONHARD EULER 0 th Cossi Art (Algra) o Ruol 4. His rul is as ollows: i thr is a rmainr p o th unknown alu ii y + an a rmainr q o it ii y multiply q y + an p y 2 an thn ii th sum o ths prouts q + p( + ) y 2 + : what rmains atr iision h laims is th solution. This rul howr ollows rom our gnral ormula i m is st qual to p or thn w ha 2 p +( +)q whih ii y 2 + las th solution. 9 In th man tim th smallst solution may oun in th ollowing way: multiply th rmainr q lt rom iision y y + an a to this prout o an + or 2 + ; thn sutrat th prout rom th rmainr q multipli y ; i this alu is < 2 + it will th solution. I it is > 2 + thn sutrat 2 + an that will th solution. I or instan w sk a numr whih ii y 00 las 75 an y 0 las 37 thn a 000 to th prout o 75 an 0 or 7575; thn w ha 775 an w sutrat rom it th prout o 37 an 00 (or 3700) whih las us with 3975 rom whih i 000 is sutrat prous 3875 whih is th smallst solution. 20 I w sk th numr whih ii y las q an y n + las p thn = an th solution z = p a = p ap + aq = (n + )q np sin a = n +. All solutions ar inlu in this xprssion: mn 2 + m + (n + )q np. I th xprssion is iisil y n + th rmainr is th minimum solution. 2 Th as in whih th rmainrs p an q ar qual mrits urthr mntion. In this as lt = 0 an w ha a solution: z = p. Thn i M is th last ommon iisor o a an all solutions ar o th orm mm + p. This ormula works or any iisors a i th sam M nots th last ommon iisor o all th iisors. Thn all solutions ar in this way onstrut suh that thy la p whn ii y M. 22 Hn a wll-worn prolm is al to sol in whih w sk a numr whih whn ii y 2 3 4 5 has a rmainr o an y 7 a rmainr o 0. All numrs whih whn ii y 2 3 4 5 ha a rmainr o possss th proprty that whn ii y 0 whih is th last ommon multipl o 2 3 4 5 an thy la a rmainr o. Thror th prolm rus to isoring th numr whih whn ii y 0 has a rmainr o in it is iisil y 7; thn a = 0 = 7 p = q = 0 an =. Whn th algorithm is omplt: 7 0 8 5 4 7 = = Q. 4 8. 3 4 8 9 7 Erg. z = 0 9 + 420m. 3 + + an i m = thn z = 30. 23 Th prolm in whih w sk a numr whih whn ii y th numrs 2 3 4 5 has a rmainr o 2 3 4 5 rsptily ut is al to ii y 7 sms to mor iiult aus th propos rmainrs ar not qual. But that qustion is quialnt to this on: to in a numr whih whn ii y 2 3 4 5 has a rmainr o an y 7 a rmainr o 0. Th ormula 0m satisis thos onitions: aus w sk a numr whih whn ii y 0 has a rmainr o ut y 7 las 0 st a = 0 = 7 p = = 0 an =. Thn y th algorithm ao Q = whih turns 7 into +7 an this multipli y gis 9 th numr w sk. 4 Rrring to M. Stil s (487-57) Di Coss Christos Ruols pulish in 553.

A SOLUTION TO THE ARITHMETIC PROBLEM 7 24 From ths two xampls it appars or qustions o this sort in whih any numr o iisors ar propos or whih two rmainrs ar lt th gin rstritions may rlas: or th qustion an ru immiatly to th qustion or two iisors: an i all th rmainrs ar qual th solution may pursu as though only on iisor was propos. An i th rmainrs ar inqual thn nrthlss rpating ths algorithms in whih w tak on two iisors at a tim th solution may otain. For it must irst satisy two o th iisors thn a thir thn th ourth until all ar satisi. This is most onnintly xplain with xampls. 25 Lt us sarh or th numr whih ii y 7 las y 9 las 7 y las 8 an y 7 las. From ths our onitions lt us tak on th irst two an w will instigat all numrs satisying thm. W ha a = 9 = 7 p = 7 q = an = so that w arry out th algorithm as ollows: 3 4 + + 7 9 7 2 7 3 Q =. an it will that z = + 4 7 = 34 All alus satisying ths onitions ar inlu in th quation 3m + 34 suh that ii y 3 th rmainr is 34. 2 Thror th prolm has n ru to this so that w sk th numr whih ii y 3 las 34 y las 8 an y 7 las. O ths thr onitions w tak on th irst two an ha a = 3 = p = 34 q = 8 an = 2 rom whih w gt th ollowing algorithm: 5 2 5 7 + + 3 5 55 8 Q = 2 2 = 3. 8 3 8 2 2 thror z = m 3 + 8 3 7 y whih th smallst solution is oun with m = 4; it will z = 8 + 3 = 349. Thus all solutions an writtn in th orm 93m + 349 that is numrs haing th proprty that ii y 93 thy la 349 as a rmainr. 27 Finally th prolm is ru thus that a numr shoul trmin whih whn ii y 93 has a rmainr o 349 an whn ii y 7 has a rmainr o. St a = 93 = 7 p = 349 q = an = 348 an with this inormation prorm th ollowing algorithm: 7 93 4 Q = 348 4 = 87. 97 4

8 LEONHARD EULER 0 4 4 z = 93 7 m + + 4 87 7 + - So th smallst solution shoul appar st m = 5 thn z = + 02 7 = 735 whih is th smallst numr satisying th our gin onitions. All solutions ar gin y th ormula 78m + 735. From this xampl mor than nough is larn in that all qustions o this kin ought to sol. 28 W now ha suiint knowlg to sol th amous hronology prolm o ating th irth o Christ gin th numr o yls o th sun an moon pass as wll as th Roman inition o that yar 5. Lt th numr o solar yls th rmainr whih ariss rom iiing th numr o yars y 9 plus 28; moror lt th numr o yls o th moon th rmainr whih ariss rom iiing th numr o yars y plus 9; also lt th inition th rmainr whih ariss rom iiing th numr o yars y 5 is a to 3 an th ollowing solution appars. Lt thr p solar yls q lunar yls an r inition [sin th passing o th nt]; p is multipl y 4845 q y 4200 an r y 9; ths thr prouts ar summ togthr with 327 an thn ii y 7980; th rmainr will th yar w sk. I w want th yar in trms o th Julian prio thn th algorithm is arri out in th sam way xpt th numr 327 shoul lt out; th mtho is gin hr. 29 Th algorithm or many iisors rquirs mor work i w simply ru th prolm y rasing th numr o iisors on y on as w i in th prior xampl; ut an asir an muh shortr way ollows rom this algorithm an th prolm an ru to th as o two iisors (rom howr many iisors thr wr). W sk a numr whih ii y a (whih I posit ar rlatily prim) las rsptily th rmainrs p q r s t. Thn th numr Ap + Bq + Cr + Ds + Et + ma satisis th prolm in whih A is th numr whih ii y th ator has rmainr 0 y a las ; B is th numr whih ii y a has rmainr 0 y las ; C is th numr whih ii y a has rmainr 0 y has rmainr ; D is th numr whih ii y a has rmainr 0 y has rmainr ; an E is th numr whih ii y a has rmainr 0 y has rmainr. Thus ths numrs an oun y th gin algorithm or two iisors. 5 An inition is a gin yar in a 5-yar yl us to at oumnts in Mial Europ.g. th 7th Inition woul th 7th yar in th yl. Howr th 5-yar yls thmsls ar usually not numr hn it is not immiatly apparnt uring whih spii yar a oumnt was writtn