input: Write a python function to find the least common multiple of numbers from 1 to a given number.
  assert least_common_multiples(10) == 1
  assert least_common_multiples(15) == 1
  assert least_common_multiples(5) == 1
output: import math
  
  def least_common_multiples(n):
      def lcm(a, b):
          return abs(a*b) // math.gcd(a, b)
      
      result = 1
      for i in range(1, n+1):
          result = lcm(result, i)
      return result