Start with an integer n. Multiply its smallest and largest digits together and add their product to n, forming the second term in the sequence. Repeat this process until n stops changing.
Example: 231, 234, 242, 250, 250. This is a 4-term sequence.
What is the longest sequence for starting values less than 30,000?
ABC is an acute-angled triangle with area 1. A rectangle F(PQRS) has its vertices on the sides of the triangle, with P and Q on BC, R on AC, and S on AB. Another rectangle, G(WXYZ), has its vertices on the sides of triangle ASR, with W and X on RS, Y on AS, and Z on AR.
What is the maximum total area of F and G?