Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A276438
a(n) = (A274647(n)-A274647(n-1)) / n.
3
1, 1, 1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 2, 1, -1, -1, 2, 1, -1, 1, -1, -1, 2, 1, -1, -1, -1, 1, -1, 2, 1, -1, -1, 2, 1, -1, -1, -1, -1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 2, 1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1, -1, 1, -1, 2, 1, -1, 1, -1, -1, -1, 1, 1, 1, -1, 1, 1, 1, -1
OFFSET
1,24
COMMENTS
a(n) tells what k was finally used when determining the value of A274647(n), with minus sign if subtraction was chosen and with positive sign if addition was chosen.
First 1 occurs at n=1, first 2 at n=24, first 3 at n=128, first 4 at n=204, first 5 at n=17903, first 6 at n=210027.
First -1 occurs at n=4, first -2 at n=124, first -3 at n=5882.
LINKS
FORMULA
a(n) = (A274647(n)-A274647(n-1)) / n.
PROG
(Scheme) (define (A276438 n) (/ (- (A274647 n) (A274647 (- n 1))) n))
CROSSREFS
Cf. A274647.
Cf. A276439 (partial sums).
Sequence in context: A113120 A154843 A062557 * A338274 A210960 A339095
KEYWORD
sign
AUTHOR
Antti Karttunen, Sep 04 2016
STATUS
approved