OFFSET
1,2
COMMENTS
Conjecture: If a(k+1)-a(k) = n then k < C*n. Can someone find an estimate for the constant C?
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n+1) = a(n) + (smallest number coprime with a(n) and not already added). - Reinhard Zumkeller, Aug 15 2015
EXAMPLE
5 follows 2 as 4 is not coprime to 2 and 5-2 = 3, 2-1 = 1.
PROG
(Haskell)
import Data.List (delete)
a089781 n = a089781_list !! (n-1)
a089781_list = 1 : f [1..] 1 where
f xs y = g xs where
g (z:zs) = if gcd y z == 1 then y' : f (delete z xs) y' else g zs
where y' = y + z
-- Reinhard Zumkeller, Aug 15 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 24 2003
EXTENSIONS
More terms from Sean A. Irvine, Jun 01 2011
STATUS
approved