What is the first 12-digit sequence in the duodecimal expansion of pi that contains each digit exactly once?
(In reply to
Different answer by Larry)
The digits I get differ from yours after about the 270th digit, marked by a break in the printing below. The digits are from
digits 10000
srce=vpa(pi);
had=[];
for i=1:10000
had=[had floor(srce)];
fprintf('%d ',floor(srce));
if mod(i,50)==0
fprintf('\n')
end
if length(had)>12
had=had(end-11:end);
end
if length(unique(had))==12
disp(i)
disp(had)
end
srce=(srce-floor(srce))*12;
end
3 1 8 4 8 0 9 4 9 3 11 9 1 8 6 6 4 5 7 3 10 6 2 1 1 11 11 1 5 1 5 5 1 10 0 5 7 2 9 2 9 0 10 7 8 0 9 10 4 9
2 7 4 2 1 4 0 10 6 0 10 5 5 2 5 6 10 0 6 6 1 10 0 3 7 5 3 10 3 10 10 5 4 8 0 5 6 4 6 8 8 0 1 8 1 10 3 6 8 3
0 8 3 2 7 2 11 11 11 10 0 10 3 7 0 11 1 2 2 6 5 5 2 9 10 8 2 8 9 0 3 11 4 11 2 5 6 11 8 4 0 3 7 5 9 10 7 1 6 2
6 11 8 10 5 4 6 8 7 6 2 1 8 4 9 11 8 4 9 10 8 2 2 5 6 1 6 11 4 4 2 7 9 6 10 3 1 7 3 7 11 2 2 9 11 2 3 9 1 4
8 9 8 5 3 9 4 3 11 8 7 6 3 7 2 5 6 1 6 4 4 7 2 3 6 11 0 2 7 10 4 2 1 10 10 1 7 10 3 8 11 5 2 10 1 8 10 8 3 8
11 0 1 5 1 4 10 5 1 1 4 4 10 2 3 3 1 5 10 3 0
0 9 10 8 9 0 6 11 6 1 11 8 11 4 8 10 6 2 2 5 3 10 8 8 10 5 0 10 4
3 11 10 0 9 4 4 5 7 2 3 1 5 9 3 3 6 6 4 4 7 6 11 3 10 10 11 11 7 7 5 8 3 9 7 5 1 2 0 6 8 3 5 2 6 11 7 5 11 4
6 2 0 6 0 11 11 0 3 11 4 3 2 5 5 1 9 1 3 7 7 2 7 2 9 10 2 1 4 7 5 5 3 5 3 1 7 9 3 8 4 8 10 0 4 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