I have had tons of trouble with this. I would appreciate the help! :)
Here are two "Repetends" of 1/97=
1/97=0.0103092783 5051546391 7525773195 8762886597 9381443298 9690721649 4845360824 7422680412 3711340206 185567.......starts repeating here. 0103 0927835051 5463917525 7731958762 8865979381 4432989690 7216494845 3608247422 6804123711 3402061855 67.....etc.
I don't know if they expect you to " calculate" manually, or some other way.
I appreciate the help. I think I will try to build on what you said. In the meantime, I still would appreciate other help!
Suppose that k = the 96 digit repetend, (as a whole number), then
1/97 = k.10^(-96) + k.10^(192) + k.10^(-288) + ...
= k.10^(-96)(1 + 10^(-96) + 10^(-192) + ...)
= k.10(-96).1/(1 - 10^(-96)), (summing the GP),
= k/(10^96 - 1)
= k/ 9999....99999,
so
97k = 9999...99999 .
Carry out the long multiplication on the lhs, (matching up with the 9's on the rhs).
The last digit of k is given as a 7, so 97* 7 = 679 which gives us a 9 in the final column and a carry of 67.
The next to last digit of k is a 6 so 97*6 + 'the carry' = 582 + 67 = 649, which gives us the next 9 with a carry of 64.
The third digit from the end of k, denoted by A in the question, has the requirement that the result of 97*A + 64 should end with a 9. That means that 97*A has to end which a 5 which in turn means that A = 5.
- Bertie
1:97=0. remainder 11⋅10:97=0 remainder 1010⋅10:97=1 remainder 33⋅10:97=0 remainder 3030⋅10:97=3 remainder 99⋅10:97=0 remainder 9090⋅10:97=9 remainder 2727⋅10:97=2 remainder 76…z⋅10:97=A remainder yy⋅10:97=6 remainder xx⋅10:97=7 remainder 1 end of repeating part remainder =1
We solve A:
We have:
x⋅10:97=7 remainder 1 or x⋅10=7⋅97+1x=7⋅97+110x=68010x=68
...and we have:
y⋅10:97=6 remainder x or y⋅10=6⋅97+68y=6⋅97+6810y=65010y=65
...and...
z⋅10:97=A remainder y or z⋅10=A⋅97+65
We have to solve the Diophantine equation 10z−97A=65.
We can do it with a variation of the Euclidean algorithm, or we can do it with Euler's Method etc.
I will do it with Euler's theorem:
In number theory, Euler's theorem (also known as the Fermat–Euler theorem or Euler's totient theorem)states that if m and a are coprime positive integers, then aφ(m)≡1(modm), if gcd(a,m)=1oraφ(m)(modm)≡1|⋅1aaφ(m)a(modm)≡1a=a−1aφ(m)−1(modm)≡1a=a−1a−1=1a≡aφ(m)−1(modm), if gcd(a,m)=1
We need this Formula: a−1=1a≡aφ(m)−1(modm), if gcd(a,m)=1
an we need the Euler's Totient Function: φ(10)=10⋅(1−12)⋅(1−15)=4, because 10=2⋅5
so we have:
10z−97A=6597A=10⋅z−65|(mod10)97A≡−65(mod10)97A≡−65+7⋅10(mod10)97A≡5(mod10)97⋅A⋅197≡597(mod10)A≡5⋅197(mod10)197(mod10)≡97φ(10)−1(mod10) see Formula above,we can do it because, gcd(97,10)=1≡974−1(mod10)≡973(mod10)≡912673(mod10)≡3(mod10)A≡5⋅197(mod10)A≡5⋅3(mod10)A≡15(mod10)A≡5(mod10)A=5