OFFSET
1,1
COMMENTS
LINKS
Dominic McCarty, Table of n, a(n) for n = 1..1000
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 positive terms at (A376651):
4, 8, 12, 17, 23, 26, 30, 35, 40, 46, 49, 55, 58, 63, 70, 73, 77, 81, 94, 97, ...
MATHEMATICA
Join@@Position[Sign[Differences[Select[Range[1000], CompositeQ], 2]], 1]
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Gus Wiseman, Oct 06 2024
STATUS
approved