Search
 
SCRIPT & CODE EXAMPLE
 

SQL

difference table

We make what is called a "difference table":

Write the numbers in a row:
              
            9   73    241    561    1081    1849 

Under that row, subtract each adjacent pair of numbers,
placing the difference between and below them.

(73-9=64, so write 64 between and below the pair 9  73,
 241-73=168, so write 168 between and below the pair 73   241, etc.) 

Like this:

            9   73     241   561    1081    1849 
              64    168   320    520     768 
                 
That row is called the row of 1st differences.                    
Under that row, again subtract each adjacent pair of numbers,
placing the difference between and below them, like this:


            9   73     241   561    1081    1849 
              64    168   320    520     768 
                 104    152   200     248

That row is called the row of 2nd differences.                  
Under that row, again subtract each adjacent pair of numbers,
placing the difference between and below them, like this:

            9   73     241   561    1081    1849 
              64    168   320    520     768 
                 104    152   200     248
                     48     48     48

That row is called the row of 3rd differences.
Now notice that they are all the same, so we don't need to
make any more rows of differences.  So we assume that the next 
3rd difference, if we had the next number after 1849, would also 
be a 48, so we write another 48 on the bottom row.
(I'll color it red):


            9   73     241   561    1081    1849 
              64    168   320    520     768 
                 104    152   200     248
                     48     48     48     48

Then we work backwards by adding.  Add the 48 to the 248, getting 296,
Write that to the right of the 248. (I'll color it red too).

            9   73     241   561    1081    1849 
              64    168   320    520     768 
                 104    152   200     248    296
                     48     48     48     48 

Still working backward, Add the 296 to the 768, getting 1064,
Write that to the right of the 768. (I'll color it red too).

            9   73     241   561    1081    1849 
              64    168   320    520     768     1064
                 104    152   200     248    296
                     48     48     48     48

One more step working backwards.  Add 1064 to the 1849, getting
2913, write it at the end of the first row, and there is your answer!:

            9   73     241   561    1081    1849     2913  
              64    168   320    520     768     1064
                 104    152   200     248    296
                     48     48     48     48

Answer: The next term is 2913

Edwin
Comment

PREVIOUS NEXT
Code Example
Sql :: postgresql regular expression special characters 
Sql :: sql query for getting details by id 
Sql :: sakila database erd postgresql 
Sql :: sql grant 
Sql :: oracle chain step succeeded 
Sql :: set Mamp mysql globally 
Sql :: SQL Aliases with MAX() and MIN() 
Sql :: oracle winter time change 
Sql :: sql query for login with email or username 
Sql :: VSCode SQL Server Connection error 
Sql :: mysql master slave setup with keepalived 
Sql :: ring SQLite sqlite_init 
Sql :: join 
Sql :: sql find record cannot cast date 
Sql :: mysql create user if not exists 
Sql :: utiliser sql ligne de commande 
Sql :: best practive to pass multiple table to stored procedure in sql server 
Sql :: SQL Copy Records Matching a Condition 
Sql :: how to get button for every record from mysql 
Sql :: sql queries for interview 
Sql :: Rows, INSERT INTO 
Sql :: distance calculator from lat long sql query 
Sql :: cast float mysql 
Sql :: Extract Data from SQL Server into XML Format 
Sql :: pl sql call web service 
Csharp :: reload scene unity 
Csharp :: unity change tag in script 
Csharp :: how to detect a mouse click in unity 
Csharp :: ALWAYS MAximize window on start c# 
Csharp :: Debug raycasthit2d unity 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =