Find a recurrence relation for this problem

Click For Summary
SUMMARY

The discussion focuses on finding a recurrence relation for the number of valid mathematical expressions of length n, denoted as an, formed using the symbols 0-9, ×, +, and /. The expressions must adhere to specific definitions of numbers and valid expressions. The initial values are established as a1 = 10 (for single-digit numbers) and a2 = 100 (for two-digit numbers). Participants suggest calculating further values to derive a general formula for an.

PREREQUISITES
  • Understanding of mathematical expressions and their syntax
  • Familiarity with recurrence relations and their applications
  • Basic knowledge of combinatorial mathematics
  • Ability to analyze sequences and derive closed forms
NEXT STEPS
  • Calculate a3 and a4 to identify patterns in the sequence of an
  • Research techniques for solving recurrence relations
  • Explore combinatorial enumeration methods for mathematical expressions
  • Study closed-form solutions for similar recurrence relations
USEFUL FOR

Mathematics students, educators, and anyone interested in combinatorial problems and recurrence relations.

johnsmiths
Messages
4
Reaction score
0

Homework Statement


Suppose that a mathematical expression can only be formed by the following symbols: 0, 1,
2, …, 9, ×, +, /. Some examples are “0 + 9”; “2 + 2 × 8”; “1 / 5 + 6”. Let an be the the number of such mathematical expression of length n (e.g. “0 + 9” is considered of length 3). Find a recurrence relation for an and compute the closed form for an.
[Some clarification: We define a number as follows
- 0, 1, 2, …, 9 is a number
- If x is a number, then x0, x1, …, x9 is a number
We define a valid expression as follows
- E is a valid expression if E is a number
- If E, F are valid expressions, then E + F, E × F, E / F are also valid expressions.
For example: 1+50/4 is an expression of length 6, and 09×00/5 is an expression of length 7.]

The Attempt at a Solution


No idea.
 
Physics news on Phys.org


johnsmiths said:

Homework Statement


Suppose that a mathematical expression can only be formed by the following symbols: 0, 1,
2, …, 9, ×, +, /. Some examples are “0 + 9”; “2 + 2 × 8”; “1 / 5 + 6”. Let an be the the number of such mathematical expression of length n (e.g. “0 + 9” is considered of length 3). Find a recurrence relation for an and compute the closed form for an.
[Some clarification: We define a number as follows
- 0, 1, 2, …, 9 is a number
- If x is a number, then x0, x1, …, x9 is a number
We define a valid expression as follows
- E is a valid expression if E is a number
- If E, F are valid expressions, then E + F, E × F, E / F are also valid expressions.
For example: 1+50/4 is an expression of length 6, and 09×00/5 is an expression of length 7.]

The Attempt at a Solution


No idea.

Before trying to come up with a closed form expression for an it might be helpful to figure out a1, a2, and a few more.

a1 is pretty easy, since a valid expression of length 1 can only be a number with a single digit.
a2 is almost as easy, since a valid expression of length 2 can only a number with two digits.

Continue along these lines and see what you can come up with.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K