A pupil is writing on a board positive integers x0,x1,x2,x3... after the following algorithm which implies arithmetic progression 3,5,7,9....Each term of rank k≥2 is a difference between the product of the last number on the board and the term of arithmetic progression of rank k and the last but one term on the bord with the sum of the terms of the arithemtic progression with ranks less than k.If x0=0 and x1=1 find xn according to n.
algorithmarithmetic sequencecombinatorics