OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..15127
FORMULA
PROG
(Scheme)
;; A stand-alone program:
(define (A280694 n) (let loop ((l1 1) (l2 3) (lpd 1)) (cond ((> l1 n) (if (and (= 1 lpd) (even? n)) 2 lpd)) ((zero? (modulo n l1)) (loop l2 (+ l1 l2) l1)) (else (loop l2 (+ l1 l2) lpd)))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 11 2017
STATUS
approved