OFFSET
1,2
COMMENTS
In the Fokkink-Joshi paper, this sequence is the Cloitre (0,1,3,4)-hiccup sequence. - Michael De Vlieger, Jul 29 2025
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Benoit Cloitre, A study of a family of self-referential sequences, arXiv:2506.18103 [math.GM], 2025. See p. 9.
Benoit Cloitre, N. J. A. Sloane and M. J. Vandermast, Numerical analogues of Aronson's sequence, J. Integer Seqs., Vol. 6 (2003), #03.2.2.
Benoit Cloitre, N. J. A. Sloane and M. J. Vandermast, Numerical analogues of Aronson's sequence, arXiv:math/0305308 [math.NT], 2003.
Robbert Fokkink and Gandhar Joshi, On Cloitre's hiccup sequences, Ramanujan J. 69 (2026), 40. See p. 4, Table 1. See also arXiv:2507.16956 [math.CO], 2025. See p. 3.
MATHEMATICA
a[n_] := a[n] = If[n == 1, 1, If[MemberQ[Array[a, n-1], n], a[n-1]+3, a[n-1]+4]]; Array[a, 56] (* Jean-François Alcover, Oct 05 2018 *)
PROG
(Haskell)
a080590 n = a080590_list !! (n-1)
a080590_list = 1 : f 2 [1] where
f x zs@(z:_) = y : f (x + 1) (y : zs) where
y = z + (if x `elem` zs then 3 else 4)
-- Reinhard Zumkeller, Sep 26 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 23 2003
STATUS
approved
