OFFSET
1,2
COMMENTS
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, B6.
R. K. Guy and J. L. Selfridge, Interim report on aliquot series, pp. 557-580 of Proceedings Manitoba Conference on Numerical Mathematics. University of Manitoba, Winnipeg, Oct 1971.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..275
PROG
(Scheme)
(define (A007906 n) (let loop ((visited (list n)) (i 1)) (let ((next (A001065 (car visited)))) (cond ((zero? next) i) ((member next visited) -1) (else (loop (cons next visited) (+ 1 i)))))))
;; Antti Karttunen, Nov 02 2017
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Gerenrot (sch116(AT)yahoo.com)
EXTENSIONS
Definition changed by N. J. A. Sloane, Nov 02 2017 at the suggestion of Antti Karttunen.
STATUS
approved