OFFSET
0,4
COMMENTS
For the positions of records, and other remarks, see comments at A225643.
PROG
(Scheme):
(define (A225644 n) (count_number_of_distinct_lcms_of_partitions_until_fixed_point_met n n))
(define (count_number_of_distinct_lcms_of_partitions_until_fixed_point_met n initial_value) (let loop ((lcms (list initial_value initial_value))) (fold_over_partitions_of n 1 lcm (lambda (p) (set-car! lcms (max (car lcms) (lcm (second lcms) p))))) (if (= (car lcms) (second lcms)) (length (cdr lcms)) (loop (cons (car lcms) lcms)))))
(define (fold_over_partitions_of m initval addpartfun colfun) (let recurse ((m m) (b m) (n 0) (partition initval)) (cond ((zero? m) (colfun partition)) (else (let loop ((i 1)) (recurse (- m i) i (+ 1 n) (addpartfun i partition)) (if (< i (min b m)) (loop (+ 1 i))))))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 15 2013
STATUS
approved