OFFSET
3,2
COMMENTS
In the generating array as above, the total of the first column of numbers is 2+2*n, the total of the second column is n*(n+1)/2, the total of all the numbers is (n+1)*(n+4)/2 and is equal to the sum of all the products i*ai. These properties are useful to get a fast computation.
FORMULA
For n<6, there exists only one sequence of 4 terms (n=3) (1,2,3,2).
For n>=6 there is always a sequence with a0=1 a1=n-2 a2=3 a3=2 a(n-2)=2, and all others ai=1.
EXAMPLE
In this array there is once the number 0,
there are 2 times the number 1,
there are 3 times the number 2,
there are 2 times the number 3,
so the first row is 1,2,3,2.
CROSSREFS
KEYWORD
fini,nonn,uned
AUTHOR
Philippe LALLOUET (philip.lallouet(AT)wanadoo.fr), Jun 08 2007
STATUS
approved