Hey Rick, every day more impressive! How do we go about inserting mathematical functions like this into sas? Sum(i in 1 to n-2) ([i]* Floor (n/[i]) where n is just the natural numbers. I just want to output two columns, one for the natural numbers and one for out come of the summation above.