OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Benoit Cloitre, Illustration of initial terms
MATHEMATICA
seq[max_] := Module[{s = Flatten[NestWhileList[Flatten[{2*# + 1, 3*# + 1}] &, 1, Min[#1] < max &]]}, Differences[Union[Select[s, # <= max &]]]]; seq[400000] (* Amiram Eldar, May 07 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 06 2002
STATUS
approved