The sum of the first n terms of the arithmetic sequence {an} is SN. It is known that S7 is the maximum value of Sn and the absolute value of A7 is less than the absolute value of A8. Find the maximum value of n with Sn greater than 0... Help, urgent

The sum of the first n terms of the arithmetic sequence {an} is SN. It is known that S7 is the maximum value of Sn and the absolute value of A7 is less than the absolute value of A8. Find the maximum value of n with Sn greater than 0... Help, urgent

S7 is the maximum of Sn,
So A7 > 0, a8s8
The symmetry axis of Sn is between 6.5 and 7
Let the abscissa of the intersection of Sn and X axis be X
So it's 6.5