Bell numbers: Difference between revisions

m
Line 1,226:
 
local N = 25 -- in lieu of 50, practical limit with double precision floats
local tri = bellTriangle(N)
 
print("First 15 and "..N.."th Bell numbers:")
Line 1,237:
 
print("First 10 rows of Bell triangle:")
for i = 1, 10 do
print("[ " .. table.concat(tri[i],", ") .. " ]")
end</lang>
Anonymous user