https://codetofun.com/js/number-pattern/program-29/
JavaScript Number Pattern 29