A002487 · Stern's diatomic series (or Stern-Brocot sequence): a(0) = 0, a(1) = 1; for n > 0: a(2n) = a(n), a(2n+1) = a(n) + a(n+1).
Piesk's conjecture above is true: the nim-product 2^x*2^y depends only on x XOR y and x AND y, which together form a hyperbinary representation of n = x + y, and different representations give different products; see the Blanco Gómez link. - Roberto Blanco Gómez, Oct 05 2026
Let f(m,n) be the frequency of the integer n in the interval [a(2^(m-1)), a(2^m-1)]. Let phi(n) be Euler's totient function (A000010). Conjecture: for all integers m,n n<=m f(m,n) = phi(n). - Yosu Yurramendi, Sep 08 2014
The conjecture is true; in fact 1 <= a(n) < A007306(n+1) and A007306(n+1) divides a(n)*A007305(n+1) - 1 for n >= 1 (see Epstein link). - Andrew R. Epstein, Sep 21 2026
Voir un exemple concret
Stern's diatomic array begins:
1,1,
1,2,1,
1,3,2,3,1,
1,4,3,5,2,5,3,4,1,
1,5,4,7,3,8,5,7,2,7,5,8,3,7,4,5,1,
1,6,5,9,4,11,7,10,3,11,8,13,5,12,7,9,2,9,7,12,5,13,8,11,3,10,7,11,4,9,...
...
a(91) = 19, because 91_10 = 1011011_2; b_6=b_4=b_3=b_1=b_0=1, b_5=b_2=0; L=5; m_1=0, m_2=1, m_3=3, m_4=4, m_5=6; c_1=2, c_2=3, c_3=2, c_4=3; f(2)=1, f(3)=2, f(4)=5, f(5)=8, f(6)=19. - Yosu Yurramendi, Jul 13 2016 [Corrected by Eric W. Weisstein, Oct 13 2026]
From I. V. Serov, Jun 01 2017:
a(n) is the length of the Christoffel word chf(n):
n chf(n) A070939(n) a(n)
1 '-' 1 1
2 '+' 2 1
3 '+-' 2 2
4 '-' 3 1
5 '--+' 3 3
6 '-+' 3 2
...
G.f. = x + x^2 + 2x^3 + x^4 + 3x^5 + 2x^6 + 3x^7 + x^8 + ... - Michael Somos, Jun 25 2019