let tri_seq = 1 |> Seq.unfold (fun x -> Some (x * (x + 1) / 2 , x + 1))
tri_seq |> Seq.take 6 |> Seq.toList |> printfn "%A" //[1; 3; 6; 10; 15; 21]