Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -0,0 +1,22 @@
|
|||
[cache]
|
||||
function hof(n: integer): integer;
|
||||
begin
|
||||
if n < 3 then result := 1
|
||||
else result := hof(hof(n - 1)) + hof(n - hof(n - 1))
|
||||
end;
|
||||
|
||||
begin
|
||||
for var nmax := 1 to 19 do
|
||||
begin
|
||||
var amax := 0.0;
|
||||
for var n := 1 shl nmax to 1 shl (nmax + 1) do
|
||||
amax := max(amax, hof(n) / n);
|
||||
writeln('Maximum between 2^', nmax, ' and 2^', nmax + 1, ' was ', amax);
|
||||
end;
|
||||
|
||||
var prize := 1 shl 20;
|
||||
repeat
|
||||
prize -= 1;
|
||||
until (hof(prize) / prize >= 0.55);
|
||||
println('Mallows'' number =', prize);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue