Determine the minimum value of a positive integer N such that:
o N has the form: 97.......97, and:
o N is divisible by 99
(In reply to
re(4): solution by Charlie)
Bug fixed:
First 50 found by
ct=0;
for p10=0:5
for mid=1:10^p10
f=['%0' char(string(p10)) 'd'];
b=sprintf(f,mid);
ns=['97' b '97'];
n=str2num(ns);
if mod(n,99)==0
disp(n)
ct=ct+1;
if ct>=50
break
end
end
end
end
970497
9702297
9712197
9722097
9731997
9741897
9751797
9761697
9771597
9781497
9791397
97000497
97010397
97020297
97030197
97040097
97049997
97059897
97069797
97079697
97089597
97099497
97109397
97119297
97129197
97139097
97148997
97158897
97168797
97178697
97188597
97198497
97208397
97218297
97228197
97238097
97247997
97257897
97267797
97277697
97287597
97297497
97307397
97317297
97327197
97337097
97346997
97356897
97366797
97376697
970002297
|
Posted by Charlie
on 2021-12-12 19:30:50 |