import scala.io._
object Main {
	def main(args: Array[String]) {
		val input = Source.fromInputStream(System.in)
		val lines = input.getLines.toSeq

		val n = lines(0).split(" ").map(_.toInt)
		var count = 0

		for(a <- 0 to n(0)) {
			for(b <- 0 to n(0)) {
				if(a % b >= n(1)) {
					count += 1
				}
			}
		}
		println(count)
	}
}
