login
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.
4

%I #16 Jun 20 2017 23:29:55

%S 1,3,6,16,58,321,2585,30198

%N 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.

%H Hugo Pfoertner, <a href="/A288850/a288850.pdf">Distribution of values generated by n-step SLPs</a>, Illustration.

%e The sets of numbers obtainable at the n-th step are:

%e S(0) = { 1 },

%e S(1) = { 0, 1, 2 },

%e S(2) = { 0, 1/2, 1, 2, 3, 4 },

%e S(3) = { 0, 1/4, 1/3, 1/2, 2/3, 1, 3/2, 2, 5/2, 3, 4, 5, 6, 8, 9, 16 }.

%Y Cf. A216999, A288760, A288849.

%K nonn,hard,more

%O 0,2

%A _Hugo Pfoertner_, Jun 18 2017

%E a(7) from _Alois P. Heinz_, Jun 18 2017