[go: up one dir, main page]

login
A279517
Record values of A156140 (accumulation of Stern's diatomic series).
2
-1, 0, 1, 3, 7, 8, 13, 17, 18, 21, 30, 35, 37, 47, 58, 59, 70, 73, 87, 94, 113, 121, 134, 139, 166, 189, 211, 221, 251, 259, 271, 304, 339, 389, 410, 419, 461, 474, 479, 553, 621, 640, 705, 740, 741, 835, 856, 868, 899, 991, 996, 1109, 1120, 1264, 1327, 1339
OFFSET
1,4
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..512
FORMULA
a(n) = A156140(A279516(n)).
PROG
(PARI) r=0; v=List([-1, 0]); u=["", -1, 0]; for(n=2, 1e10, u=[u[2], u[3], (2*valuation(n-1, 2)+1)*u[3] - u[2]]; if(u[3]>r, r=u[3]; listput(v, t); print("a("#v") = "t", ")))
CROSSREFS
KEYWORD
sign
AUTHOR
STATUS
approved