script to get table of the specified number