← RoseCode

ROSECODE 023

Divisible Hexagons

elasolova · Programming ·

A hexagonal number is computed as follows using the formula:

H(n) = n(2n-1)

As shown, the first 5 hexagonal numbers are:

1 6 15 28 45

How many of the first 100,000,000 hexagonal numbers are divisible by all the numbers from 1 through 15?