OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..250
Eric Weisstein's World of Mathematics, Hofstadter's Q-Sequence
Wikipedia, Hofstadter sequence
PROG
(Haskell)
import Data.List (elemIndices)
a081828 n = a081828_list !! (n-1)
a081828_list = map (+ 1) $ elemIndices 0 a081827_list
-- Reinhard Zumkeller, Sep 15 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 10 2003
STATUS
approved