|
|
|
|
0, 0, 6, 3, 30, 27, 162, 171, 885, 987, 4839, 5502, 26436, 30216
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
PROG
|
(MIT Scheme:)
(define (A163913 n) (let ((rp (range-of-n-th-quaternary-forest n))) (let loop ((s 0) (i (car rp))) (cond ((> i (cdr rp)) s) ((and (not (= (A163355 i) i)) (= (A163915 i) i)) (loop (1+ s) (1+ i))) (else (loop s (1+ i)))))))
(define (range-of-n-th-quaternary-forest n) (if (zero? n) (cons n n) (cons (A000302 (-1+ n)) (+ (A000302 (-1+ n)) (-1+ (A002001 n))))))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|