cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A288850 Number of distinct nonnegative rational numbers that can be obtained in n steps by a straight-line program (SLP) starting at 1 using addition, subtraction, multiplication and division.

Original entry on oeis.org

1, 3, 6, 16, 58, 321, 2585, 30198
Offset: 0

Views

Author

Hugo Pfoertner, Jun 18 2017

Keywords

Examples

			The sets of numbers obtainable at the n-th step are:
S(0) = { 1 },
S(1) = { 0, 1, 2 },
S(2) = { 0, 1/2, 1, 2, 3, 4 },
S(3) = { 0, 1/4, 1/3, 1/2, 2/3, 1, 3/2, 2, 5/2, 3, 4, 5, 6, 8, 9, 16 }.
		

Crossrefs

Extensions

a(7) from Alois P. Heinz, Jun 18 2017

A288759 Number of distinct rational numbers that can be obtained in n steps by applying addition, subtraction, multiplication and division to any two potentially identical numbers from the complete set of numbers created in n-1 steps, starting with the set {1}.

Original entry on oeis.org

1, 3, 8, 38, 555, 74423, 902663448
Offset: 0

Views

Author

Hugo Pfoertner, Jun 15 2017

Keywords

Comments

This is different from a straight-line program (SLP), which can only use numbers created in the path to its own result at level n-1. A288849 provides the cardinalities of the sets that can be created by the related SLPs.

Examples

			The sets of numbers obtainable at the n-th step are:
S(0) = { 1 },
S(1) = { 0, 1, 2 },
S(2) = { -2, -1, 0, 1/2, 1, 2, 3, 4 },
S(3) = { -8, -6, -5, -4, -7/2, -3, -5/2, -2, -3/2, -1, -2/3, -1/2, -1/3, -1/4, 0, 1/8, 1/6, 1/4, 1/3, 1/2, 2/3, 3/4, 1, 4/3, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 6, 7, 8, 9, 12, 16 }.
		

Crossrefs

Extensions

a(6) from Hugo Pfoertner and Markus Sigg, Aug 06 2017
Showing 1-2 of 2 results.