Generate a set or sequence without loop

Refer this link to generate a set or sequence without loop in SQL Server.

http://www.sqlperformance.com/2013/01/t-sql-queries/generate-a-set-1