Divisibility rule for 6: If a number is divisible by 2 and 3 both then it is divisible by 6 also.
Applying the above divisibility rule, we get
1790184 → Divisible by 2 as its units place is an even number.
→ Divisible by 3 as sum of its digits (= 30) is divisible by 3.
Since the number is divisible by both 2 and 3, therefore, it is divisible by 6.