login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A216999 Number of integers obtainable from 1 in n steps using addition, multiplication, and subtraction. 10

%I #32 Jun 09 2018 10:30:54

%S 1,3,6,13,38,153,867,6930,75986,1109442,20693262,477815647

%N Number of integers obtainable from 1 in n steps using addition, multiplication, and subtraction.

%C A straight-line program is a sequence that starts at 1 and has each entry obtained from two preceding entries by addition, multiplication, or subtraction. S(n) is the set of integers obtainable at any point in a straight-line program using n steps. Thus S(0) = {1}, S(1) = {0,1,2}, S(2) = {-1,0,1,2,3,4}; the sequence here is the cardinality of S(n).

%H Peter Borwein and Joe Hobart, <a href="http://www.jstor.org/stable/10.4169/amer.math.monthly.119.07.584">The extraordinary power of division in straight line programs</a>, American Mathematical Monthly 119:7 (2012), pp. 584-592.

%H Michael Shub and Steve Smale, <a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.100.5035">On the intractability of Hilbert's Nullstellensatz and an algebraic version of "NP = P"</a>, Duke Mathematical Journal 81:1 (1995), pp. 47-54.

%t extend[p_] := Module[{q = Tuples[p, {2}], new},

%t new = Flatten[Table[{Total[t], Subtract @@ t, Times @@ t}, {t, q}]];

%t Union[ Sort /@ DeleteCases[ Table[If[! MemberQ[p, n], Append[p, n]], {n, new}], Null]]] ;

%t P[0] = {{1}};

%t P[n_] := P[n] = DeleteDuplicates[Flatten[extend /@ P[n - 1], 1]];

%t S[n_] := DeleteDuplicates[Flatten[P[n]]];

%t Length /@ S /@ Range[6]

%Y Cf. A003065, A141414, A173419, A288849, A288850.

%K nonn,more,hard,nice

%O 0,2

%A _Stan Wagon_, Sep 22 2012

%E a(9)-a(11) (Michael Collier verified independently the 1109442, 20693262 values) by _Gil Dogon_, Sep 27 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 02:14 EDT 2024. Contains 371906 sequences. (Running on oeis4.)