I'll pay 1000 space bucks to anyone who can send me a single-line function that will return the following table of values:









xf(x)
21
32
43
54
65
76
17


This works, but the IF offends me:
CREATE FUNCTION dbo.fx
(
  @x int
)
RETURNS int
AS
BEGIN
  DECLARE @y int
  
  SET @y = @x - 1
  IF @y = 0 SET @y = 7

  RETURN @y
END