OEIS_terms: Get OEIS sequence terms from 'XML' document.

View source: R/OEIS_terms.R

OEIS_termsR Documentation

Get OEIS sequence terms from 'XML' document.

Description

This is the data included in the sequence. These lines give the beginning of the sequence. Ideally the entry gives enough terms to fill about three lines on the screen. The terms must be integers. If the terms are fractions, then the numerators and denominators appear as separate sequences, labeled with the Keyword "frac", and with links connecting the two sequences. Only sequences that are well-defined and of general interest are included

Usage

OEIS_terms(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 list with the OEIS sequence terms.

Note

For more terms see OEIS_bfile.

See Also

* OEIS_internal_format

* OEIS_sequence

* OEIS_bfile

* OEIS_xml

Examples

# Wieferich primes: primes p such that p^2 divides 2^(p-1) - 1.
id <- "A001220"
internal_format <- OEIS_internal_format(id)
OEIS_terms(internal_format)


EnriquePH/OEIS.R documentation built on March 15, 2023, 8:01 a.m.