OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
EXAMPLE
MATHEMATICA
seq[max_] := Module[{s = Flatten[NestWhileList[Flatten[{2*# + 1, 3*# + 1}] &, 1, Min[#1] < max &]], t}, t = Union[Select[s, # <= max &]]; Select[t, MemberQ[t, (# - 1)/2] && MemberQ[t, (# - 1)/3] &]]; seq[200000] (* Amiram Eldar, May 07 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 11 2003
EXTENSIONS
More terms from Ray Chandler, Sep 06 2003
STATUS
approved