|
Search: id:A135025
|
|
|
| A135025 |
|
See Comments lines for definition. |
|
+0 2
|
|
| 4, 9, 22, 57, 146, 367, 946, 2507, 6634, 17777, 48522, 133107, 369020, 1028405, 2880288
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
Let P(n) be the n-th prime. Construct the following sequence:
B(1) = 2
If n>= 2, then if (B(n-1) - P(n) < 0) then B(n) = B(n) + P(n) else B(n) = B(n) - P(n)
Definition: if n>=1, the term B(n) is stationary if it satisfies the inequality B(n-1) < B(n) < B(n+1). Sequence gives the indices n of the stationary terms.
|
|
EXAMPLE
|
B(1) = 2
B(2) = 5
B(3) = 0
B(4) = 7
B(5) = 18
B(4) is the first stationary term of B, so 4 is the first term of the sequence.
|
|
CROSSREFS
|
Cf. A135026.
Adjacent sequences: A135022 A135023 A135024 this_sequence A135026 A135027 A135028
Sequence in context: A042833 A048654 A122626 this_sequence A070713 A060250 A138991
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
Lior Deutsch (liorde(AT)gmail.com), Feb 10 2008
|
|
|
Search completed in 0.002 seconds
|