OFFSET
1,5
COMMENTS
No 5's present among the first 16384 terms, but they should exist as A095955 has them too. - Antti Karttunen, Dec 04 2017
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
PROG
(Scheme) (define (A096993 n) (if (= 1 n) n (let loop ((visited (list n)) (i 1)) (let ((next (A062402 (car visited)))) (cond ((member next visited) => (lambda (prepath) (+ 1 (- i (length prepath))))) (else (loop (cons next visited) (+ 1 i)))))))) ;; Antti Karttunen, Dec 04 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 19 2004
STATUS
approved