HP Prime for All

English  Русский 

Syntax

seq(Expr(Xpr),Intg(n)||Var(var),[Intg(a)],[Intg(b)],[Intg(p)])

Description

Returns the sequence (if 2 or 3 arguments) or the list (if 4 or 5 arguments) obtained when var goes from a to b (step p) in Xpr, or when Xpr is repeated n times.

Example

seq(2^k,k=0..8) returns 1,2,4,8,16,32,64,128,256

seq — Discussion