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!)
A307900 Number of functions constructed from n instances of variable x using operators + (add), * (multiply), and parentheses. 0
1, 2, 4, 10, 24, 61, 150, 382, 964, 2452, 6307, 16379, 42989, 113965, 305035, 823632, 2241814, 6145670, 16956972, 47059076, 131279567 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Structurally different expressions that represent the same function of x are only counted once. So, a(n) <= A052701(n).
LINKS
EXAMPLE
For n = 1, we have only one function {x}, so a(1) = 1.
For n = 2, we have {x*x, x + x} = {x^2, 2*x}, so a(2) = 2.
For n = 3, we have {x^2*x, 2*x*x, x^2 + x, 2*x + x} = {x^3, 2*x^2, x^2 + x, 3*x}, so a(3) = 4.
For n = 4, we have {x^4, 2*x^3, x^3 + x^2, x^3 + x, 4*x^2, 3*x^2, 2*x^2 + x, 2*x^2, x^2 + 2*x, 4*x}, so a(4) = 10.
MAPLE
b:= proc(n) option remember; `if`(n=1, {x}, {seq(seq(seq([f+g,
expand(f*g)][], g=b(n-i)), f=b(i)), i=1..iquo(n, 2))})
end:
a:= n-> nops(b(n)):
seq(a(n), n=1..12); # Alois P. Heinz, May 04 2019
MATHEMATICA
ClearAll[a, f, x, n, k]; f[1] = {x}; f[n_Integer] := f[n] = DeleteDuplicates[Expand[Flatten[Table[Outer[#1[#2, #3] &, {Times, Plus}, f[k], f[n - k]], {k, n/2}]]]]; a[n_Integer] := Length[f[n]]; Table[a[n], {n, 15}]
CROSSREFS
Sequence in context: A329673 A055919 A006575 * A230551 A246566 A230553
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
a(19)-a(20) from Alois P. Heinz, May 04 2019
a(21) from Vladimir Reshetnikov, May 05 2019
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 April 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)