OFFSET
1,1
COMMENTS
LINKS
EXAMPLE
The composite numbers are (A002808):
4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28, 30, 32, 33, ...
with first differences (A073783):
2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, ...
with first differences (A073445):
0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, -1, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1, -1, 0, ...
with negative terms at (A376651):
2, 6, 10, 13, 19, 24, 28, 31, 36, 42, 47, 51, 56, 59, 64, 71, 75, 79, 82, 95, 98, ...
MATHEMATICA
Join@@Position[Sign[Differences[Select[Range[1000], CompositeQ], 2]], -1]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 06 2024
STATUS
approved