Skip to contents

These lines give formulae, recurrences, generating functions, etc. for the sequence. a(n) usually denotes the n-th term of the sequence, and n is a typical subscript.

Usage

OEIS_formula(x)

Arguments

x

Can be one of the following:

  • A character string with sequence ID.

  • A OEIS_internal S3 class object, with sequence internal format.

  • A S3 classes object OEIS_xml and xml_document, with sequence content from OEIS web.

  • An object of OEIS_sequence class, that contains all sequence related data.

Value

A character string with the OEIS sequence formula lines or NULL if there are no formulae.

Examples

if (FALSE) { # \dontrun{
id <- "A105805"
internal_format <- OEIS_internal_format(id)
formula <- OEIS_formula(internal_format)
cat(formula, sep = "\n")
} # }