Let N(x) be the number 122....221 where the digit 2 occurs x times.
Twice in the
past we have determined the highest power of 11 that divides N(2001) is 11^3.
What is the smallest x for N(x) to be a multiple of 11^3? What about multiples of 11^4 and 11^5?
(In reply to
Analytic Solution by Brian Smith)
To continue in this line N(322101) is the minimal term for 11^7.
N=121
Tst=N
Pwr=0
Twos=1
11 Eleven5=11^7
15 do
50 if N%Eleven5=0 then
print Twos;"*"
Ct=Ct+1
endif
80 N=((N1)*10+21)%Eleven5
Twos=Twos+1
90 loop until Ct>0
a mess of a program as it was translated into Mintoris Basic.

Posted by Charlie
on 20170526 15:45:40 