t(n) = n*(n+1)/2 where n = 1, 2, 3, ...
The basic syntax for a for loop in F# is :for pattern in enumerable-expression dobody-expressionThe enumerable-expression can be a list, sequence, array, sets, maps so on.It can also be a range, like 1 .. 10 or 1 .. 2 .. 10.The former meaning the range of integers from 1 to 10. The later means, rangeof odd integers (jumping 2 steps ahead) from 1 to 10.
10
nth term
12 - 5(n-1)
It is a sequence of three integers.
Put n = 1, 2, 3, 4 etc in the expression 5n + 2 and evaluate to get the sequence.
The number is dived by 10 so 1000, 100, 10, 1, 1/10, 1/100 1/000
the answer is 10^0=1 the number 1
10 to the 6th power
This sequence can be generalized as: 1+10^-(n+2) where n = 0,1,2,3,.... As n goes to infinity, 10^(-inf) goes to zero. So, the final term in the sequence will be 1.
0.1
This is an arithmetic sequence with t1 = 1 and the common difference d = -18.The nth term of an arithmetic sequence is given by the formula:tn = t1 + (n - 1)d (substitute 10 for n, 1 for t1, and -18 for d)t10 = 1 + (10 - 1)(-18) = 1 + 9(-18) = 1 - 162 = -161Thus the 10th number of the sequence is -161.