HexMathv1.0.4
Sequence calculator: finding the pattern
This sequence calculator finds the pattern in a list of numbers. Type the first few terms or scan them. HexMath tests for an arithmetic, geometric or quadratic pattern, returns the rule for the nth term or the term you ask for, and shows the differences or ratios that reveal the pattern, step by step.
Loading math input...
What this page covers
- Arithmetic patterns, where the same number is added each time.
- Geometric patterns, where each term is multiplied by the same number.
- Quadratic patterns, where the differences themselves go up by a fixed amount.
- Not covered here: sums of many terms (see the partial sum calculator), and lists with no clear rule, where several patterns fit the same terms.
How to enter the problem
- Type it or paste it. List at least 4 terms separated by commas and say what you want, the nth term or a term number.
- Scan it. Fit the one problem in the frame.
- Choose a photo. Several problems in one photo are solved as a list.
- Then tap Solve.
Worked examples
Example 1: Find the nth term of 7, 11, 15, 19, …
Problem
Find the th term of
Answer
VerifiedThe answer is
Explanation
- Find the common difference, , . The sequence is arithmetic with .
- Use the arithmetic formula
- Simplify
- Check two terms: . : . Both match.
Example 2: Find the rule for the nth term of 2, 6, 18, 54, …
Problem
Find the rule for the nth term of
Answer
VerifiedThe answer is
Explanation
- Look at the ratios, , . Each term is 3 times the one before.
- Write the geometric ruleFirst term , ratio , so .
- Test itgives , which matches.
Example 3: Find the rule for the nth term of 3, 6, 11, 18, 27, …
Problem
Find the rule for the nth term of
Answer
VerifiedThe answer is
Explanation
- First differences. These are not constant.
- Second differences. A constant second difference means the rule is quadratic, with coefficient .
- Remove the partSubtract from each term: gives
- Put the parts togetherWhat remains is the constant , so .
Common mistakes
- Using in place of in the arithmetic rule, which gives instead of for the example.
- Calling a pattern arithmetic when the differences change. Check two or three differences before writing a rule.
- Writing a geometric rule with exponent instead of , which makes every term 3 times too big in .
- Stopping at the first differences for a quadratic pattern. The second differences show the part.
Checks, assumptions and limits
- Check by hand: put into the rule and make sure it gives back the terms you started with.
- A few terms never prove a pattern. The rule found is the simplest one that fits the terms given.
- HexMath can make mistakes. Double check important steps.
Frequently asked questions
4 or more is safest. Two or three terms fit many different rules, so more terms make the pattern clear.
Yes. Ask for the next term, or for a term number such as the 20th, and the steps show the rule first.
The steps look at differences and ratios. If the second differences are constant, the rule is quadratic and is found the same way.
Sums have their own page. Use the partial sum calculator to add the first terms of a sequence.
Related tasks
Ready to solve your next math problem?
Create a free account for 3 math questions a day in your browser. No card.
Last updated: · HexMath