OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n)=floor(rn-(3r-1)/(r+1)) where r= (1/2) *(3+sqrt(13))
PROG
(Haskell)
a081834 n = a081834_list !! (n-1)
a081834_list = 1 : f 2 [1] where
f x zs@(z:_) = y : f (x + 1) (y : zs) where
y = z + (if x `elem` zs then 4 else 3)
-- Reinhard Zumkeller, Sep 26 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 11 2003
STATUS
approved