login
A076291
a(n) = A002977(n+1) - A002977(n).
2
2, 1, 3, 2, 1, 3, 2, 4, 2, 1, 5, 1, 3, 8, 1, 3, 2, 1, 9, 2, 1, 5, 1, 3, 12, 2, 1, 3, 2, 4, 2, 1, 17, 4, 2, 1, 3, 6, 2, 1, 5, 1, 3, 20, 4, 2, 1, 5, 1, 3, 8, 4, 2, 1, 3, 9, 21, 8, 4, 2, 1, 5, 1, 3, 8, 1, 3, 2, 1, 9, 2, 1, 5, 1, 3, 36, 8, 4, 2, 1, 9, 2, 1, 5, 1, 3, 9, 3, 8, 4, 2, 1, 5, 1, 3, 14, 1, 3, 9, 29, 16
OFFSET
1,1
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
Cf. A002977.
Sequence in context: A328719 A113787 A115624 * A275015 A370264 A211189
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 06 2002
STATUS
approved