The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A296261 Least non-constructible integer after addition or multiplication. 0
2, 3, 5, 10, 26, 178, 7391, 6550891 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Starting with C(1)={0,1}, C(n)={x+y| x, y in C(n-1)} union {x*y, x,y in C(n-1)}. Then a(n) is the least integer not in C(n).
LINKS
EXAMPLE
For example, C(1)={0,1}, C(2)={0,1,2}, C(3)={0,1,2,3,4}, C(4)={0,1,2,3,4,5,6,7,8,9,12,16}.
So a(1)=2, a(2)=3, a(3)=5, and a(4)=10.
PROG
(Python)
from itertools import filterfalse, count, combinations_with_replacement as cwr
n = 6
x = set([0, 1])
for i in range(n):
x = set([a[0] + a[1] for a in cwr(x, 2)]).union(set([a[0]*a[1] for a in cwr(x, 2)]))
print(next(filterfalse(lambda b: b in x, count())))
CROSSREFS
Sequence in context: A011832 A011833 A007695 * A133662 A204518 A336991
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
a(8) from Rémy Sigrist, Dec 19 2017
STATUS
approved

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 May 13 16:07 EDT 2024. Contains 372522 sequences. (Running on oeis4.)