Question
The LCM of six consecutive numbers is 420. The
sum of the first and fourth numbers is equal to the sixth number. What is the product of six numbers?Solution
Therefore, 420 = 2 × 2 × × 3 × 5 × 7 i.e, numbers are 2, 3, 4, 5, 6 and 7 Therefore, products is = 2 × 3 × 4 × 5 × 6 × 7 = 5040 Alternate method: Let the numbers be x, x + 1, x + 2, x + 3, x + 4, x + 5 Given that Sum of the first and fourth numbers is equal to the sixth number so, x + x + 3 = x + 5 x = 2 numbers are 2, 3, 4, 5, 6 and 7 Therefore, products is = 2 × 3 × 4 × 5 × 6 × 7 = 5040
What is the primary purpose of a `SEQUENCE` in SQL?
In PL/SQL, what type of parameter allows a procedure to both receive a value from the calling environment and return a modified value back to it?
Which SQL clause is used for filtering rows?
Which SQL command is used to modify existing records in a table?
Which type of trigger fires once for each row affected by the triggering DML statement?
Which operator is used for pattern matching in SQL?
When does an implicit cursor get automatically declared and managed by PL/SQL?
Which SQL command is used to remove a table completely?
Which join returns rows from the left table even when there is no matching row in the right table, filling with NULLs for the right side?
What is an SQL `VIEW`?