OFFSET
1,2
COMMENTS
There are an infinite number of sequences {a(k)}, with different values for a(1) and a(2) (a(1) must be 0 or 1; a(2) can be anything), where Product_{k=1..n} (Sum_{j=1..k} a(j)) = Sum_{k=1..n} Product_{j=1..k} a(j), for all positive integers n. Setting a(1) to 1 and a(2) to 2 results in the sequence here.
All sequences (not necessarily integer sequences) with a(1) = 0 trivially have the property in the sequence name because each product is zero. For a general sequence in this family with a(1) = 1 and a(2) any integer, then a(3) = -a(2)^2 - a(2) and, for n >= 4, a(n) = -a(2)^(2^(n-3))*(a(2)^(2^(n-3))-1), so that all terms after a(2) are negatives of oblong (or promic) numbers (A002378). - Rick L. Shepherd, Aug 10 2014
LINKS
Rick L. Shepherd, Table of n, a(n) for n = 1..13
FORMULA
For n >= 4, a(n) = -2^(2^(n-3)) * (2^(2^(n-3)) - 1).
EXAMPLE
For n = 4, we have a(1) * (a(1)+a(2)) * (a(1)+a(2)+a(3)) * (a(1)+a(2)+a(3)+a(4)) = a(1) + a(1)*a(2) + a(1)*a(2)*a(3) + a(1)*a(2)*a(3)*a(4) =
1 * (1+2) * (1+2-6) * (1+2-6-12) = 1 + 1*2 + 1*2*(-6) + 1*2*(-6)*(-12) = 135.
PROG
(PARI)
a(n) = if(n<1, , if(n<3, n, if(n==3, -6, -2^(2^(n-3))*(2^(2^(n-3))-1)))) \\ Rick L. Shepherd, Aug 10 2014
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Leroy Quet, Oct 30 2007
EXTENSIONS
More terms from Max Alekseyev, Apr 29 2010
STATUS
approved
