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!)
A351922 Consider well-formed strings consisting of n operands, n - 1 binary operators +, -, *, /, ^, and n-1 pairs of parentheses, and call two such strings equivalent if they are algebraically identical; a(n) is the number of equivalence classes. 1
1, 8, 146, 4294 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
E.g., a+b-c is considered equivalent to b-c+a; (a-b)/(c-d) to (b-a)/(d-c); and (a^b)^c to a^(b*c). Each algebraically equivalent possibility is counted once. Parentheses can be used freely.
LINKS
N. J. A. Sloane, The On-Line Encyclopedia of Integer Sequences: An illustrated guide with many unsolved problems, Guest Lecture given in Doron Zeilberger's Experimental Mathematics Math640 Class, Rutgers University, Spring Semester, Apr 28 2022: Slides; Slides (an alternative source).
EXAMPLE
For n = 2 the a(2) = 8 expressions are a+b, a-b, b-a, a*b, a/b, b/a, a^b, b^a. b+a does not count because it is equivalent to a+b.
For n=3, the a(3)=146 expressions (as rendered canonically by fullratsimp/fortran in maxima) are: a*b-a*c; a*b-b*c; (a*b)/c; (a-b)*c; (a-b)^c; a*b*c; a*b-c; a*b^c; a-b*c; a-b^c; a/(b*c); a/b^c; a^(b*c); a^(b-c); a^(b/c); a^b*c; a^b-c; a^b/c; a^b^c; a^b*c^b; a^b/c^b; a*c+a*b; a*c-a*b; (a*c)/b; (a-c)^b; -a/(c-b); a*c+b; a*c-b; a*c^b; a-c^b; a/(c+b); a/(c-b); a/c^b; a^(c+b); a^(c-b); a^(c/b); a^c*b; a^c-b; a^c/b; a^c^b; (a*c+b)/a; (a*c-b)/a; -(a*c-b)/a; (a*c+b)/c; (a*c-b)/c; -(a*c-b)/c; a^c*b^c; a^c/b^c; (b+a)*c; (b+a)/c; (b+a)^c; (b-a)*c; (b-a)/c; (b-a)^c; -(b-a)/c; b+a^c; b-a*c; b-a^c; b/(a*c); b/a^c; b^(a*c); b^(a-c); b^(a/c); b^a*c; b^a-c; b^a/c; b^a^c; b^a*c^a; b^a/c^a; (b*c)/a; (b-c)^a; -b/(c-a); b*c+a; b*c-a; b*c^a; b-c^a; b/(c+a); b/(c-a); b/c^a; b^(c+a); b^(c-a); b^(c/a); b^c+a; b^c-a; b^c/a; b^c^a; (b*c+a)/b; (b*c-a)/b; -(b*c-a)/b; b*c+a*b; b*c-a*b; (b*c+a)/c; (b*c-a)/c; -(b*c-a)/c; b^c/a^c; (c+a)/b; (c+a)^b; (c-a)/b; (c-a)^b; -(c-a)/b; c+a*b; c+a^b; c-a*b; c-a^b; c/(a*b); c/a^b; c^(a*b); c^(a-b); c^(a/b); c^a+b; c^a-b; c^a/b; c^a^b; (c+a*b)/a; (c-a*b)/a; -(c-a*b)/a; c^a/b^a; (c+a*b)/b; (c-a*b)/b; -(c-a*b)/b; (-c)+b+a; (-c)+b-a; (-c)-b+a; (c+b)/a; (c+b)^a; (c-b)/a; (c-b)^a; -(c-b)/a; -c/(b-a); c+b+a; c+b-a; c+b^a; c-b+a; c-b-a; c-b^a; c/(b+a); c/(b-a); c/b^a; c^(b+a); c^(b-a); c^(b/a); c^b+a; c^b-a; c^b/a; c^b^a; c^b/a^b.
CROSSREFS
Cf. A140606 (which does not allow ^).
Sequence in context: A123812 A064331 A230938 * A239758 A239759 A279127
KEYWORD
nonn,more,hard,nice
AUTHOR
Jonathan Dushoff, Feb 25 2022
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 17 18:43 EDT 2024. Contains 371765 sequences. (Running on oeis4.)