recurseq1: Recursive sequence

Description Usage Arguments Value Examples

View source: R/recurseq1.R

Description

This takes as input a vector x containing the first three numeric elements of this sequence and a positive integer n denoting the final nth element of the sequence to calculate. The function will return element n.

Usage

1
recurseq1(x, n)

Arguments

x

vector

n

integer

Value

element n

Examples

1
recurseq1(x = c(2, 3, 3), n = 3)

STAT-413-613-21S/hw04paevans872 documentation built on Feb. 28, 2021, 12:12 a.m.